Delete VBO on mesh deletion
This commit is contained in:
parent
2e5c5fdf8c
commit
fb4a412db5
|
@ -19,4 +19,5 @@ Mesh::Mesh(std::span<glm::vec2> verts) {
|
||||||
|
|
||||||
Mesh::~Mesh() {
|
Mesh::~Mesh() {
|
||||||
glDeleteVertexArrays(1, &vao);
|
glDeleteVertexArrays(1, &vao);
|
||||||
|
glDeleteBuffers(1, &vbo);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue