Delete VBO on mesh deletion

This commit is contained in:
Archie Hilton 2024-05-14 21:48:58 +01:00
parent 2e5c5fdf8c
commit fb4a412db5
1 changed files with 1 additions and 0 deletions

View File

@ -19,4 +19,5 @@ Mesh::Mesh(std::span<glm::vec2> verts) {
Mesh::~Mesh() {
glDeleteVertexArrays(1, &vao);
glDeleteBuffers(1, &vbo);
}