summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorMarc Gilleron <marc.gilleron@gmail.com>2017-06-16 02:39:16 +0200
committerMarc Gilleron <marc.gilleron@gmail.com>2017-06-16 02:39:16 +0200
commit4dbe0967d5fb99a57786649ad9a00785e5fcb621 (patch)
tree7201f8526617e2ff065c6d468092d6ddb38fd545 /drivers/gles3
parent43a84429ff2fb0ba120f38797dcf313370b3bd18 (diff)
Fixed memory leaks
- PoolVector leak - mesh_remove_surface leak
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/rasterizer_storage_gles3.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp
index a38e149aff..ff483a0fde 100644
--- a/drivers/gles3/rasterizer_storage_gles3.cpp
+++ b/drivers/gles3/rasterizer_storage_gles3.cpp
@@ -3107,6 +3107,7 @@ void RasterizerStorageGLES3::mesh_remove_surface(RID p_mesh, int p_surface) {
}
glDeleteVertexArrays(1, &surface->array_id);
+ glDeleteVertexArrays(1, &surface->instancing_array_id);
for (int i = 0; i < surface->blend_shapes.size(); i++) {