View Code? Open in Web Editor
NEW
Repository for my german OpenGL Tutorial series. Code for each tutorial can be found in the respective branches
Home Page: https://www.youtube.com/playlist?list=PLStQc0GqppuWBDuNWnkQ8rzmyx35AINyt
License: MIT License
C++ 79.15%
GLSL 0.27%
C 18.83%
CMake 0.10%
Objective-C 1.65%
Makefile 0.01%
opengltutorial's People
Contributors
opengltutorial's Issues
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.
|
glGenVertexArrays(1, &vao); |
|
glGenBuffers(1, &bufferId); |
|
virtual ~VertexBuffer() { |
|
glDeleteBuffers(1, &bufferId); |
|
} |
Inserting glDeleteVertexArrays(1, &vao);
into the destructors code solved the problem for me.