mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fix Texture leak in Meshes
This commit is contained in:
@@ -79,6 +79,9 @@ Mesh::Mesh(int vertexcount, Mesh::DrawMode mode)
|
|||||||
|
|
||||||
Mesh::~Mesh()
|
Mesh::~Mesh()
|
||||||
{
|
{
|
||||||
|
if (texture)
|
||||||
|
texture->release();
|
||||||
|
|
||||||
delete vbo;
|
delete vbo;
|
||||||
delete ibo;
|
delete ibo;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user