Open
Description
In VertexBuffer constructor a vertex array object and a buffer are created (Ln. 8/Ln. 11) but the destructor only frees the buffer but not the vao.
OpenGLTutorial/vertex_buffer.h
Line 8 in b4fe9e7
OpenGLTutorial/vertex_buffer.h
Line 11 in b4fe9e7
OpenGLTutorial/vertex_buffer.h
Lines 27 to 29 in b4fe9e7
Inserting glDeleteVertexArrays(1, &vao);
into the destructors code solved the problem for me.
Metadata
Metadata
Assignees
Labels
No labels
Activity