Skip to content

Commit

Permalink
fix(mesh): added destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ms0g committed May 5, 2024
1 parent 5009c4a commit c6a7c67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/world/mesh/IMesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class IMesh {
mVertices(std::move(vertices)),
mTextures(std::move(textures)) {}

virtual ~IMesh() = default;
virtual ~IMesh() {
glDeleteVertexArrays(1, &mVAO);
}

virtual void setup() = 0;

Expand Down

0 comments on commit c6a7c67

Please sign in to comment.