From fb4a412db57ce6927dbfdba707fb91e742a41644 Mon Sep 17 00:00:00 2001 From: Archie Hilton Date: Tue, 14 May 2024 21:48:58 +0100 Subject: [PATCH] Delete VBO on mesh deletion --- src/Mesh.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mesh.cc b/src/Mesh.cc index f0ec28c..7db7e67 100644 --- a/src/Mesh.cc +++ b/src/Mesh.cc @@ -19,4 +19,5 @@ Mesh::Mesh(std::span verts) { Mesh::~Mesh() { glDeleteVertexArrays(1, &vao); + glDeleteBuffers(1, &vbo); }