Commits

Bart van Strien committed 7a6c24b

Fix Texture leak in Meshes

Comments (0)

Files changed (1)

src/modules/graphics/opengl/Mesh.cpp

 
 Mesh::~Mesh()
 {
+	if (texture)
+		texture->release();
+
 	delete vbo;
 	delete ibo;
 }