-
Notifications
You must be signed in to change notification settings - Fork 7
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
glGenVertexArrays(1, &vao); |
OpenGLTutorial/vertex_buffer.h
Line 11 in b4fe9e7
glGenBuffers(1, &bufferId); |
OpenGLTutorial/vertex_buffer.h
Lines 27 to 29 in b4fe9e7
virtual ~VertexBuffer() { | |
glDeleteBuffers(1, &bufferId); | |
} |
Inserting glDeleteVertexArrays(1, &vao);
into the destructors code solved the problem for me.
Metadata
Metadata
Assignees
Labels
No labels