summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-01-12 09:11:27 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-01-12 09:12:31 -0300
commit3a05d974e0fb925869fe0fdfdbde9da8ee6a2757 (patch)
tree96f6375044f76f1b52db0b37676fcca52eeea6c6 /drivers/gles3
parent2dbd3475a56dbd0f0ea2967edf2c44e5c4ee316a (diff)
Instance dependency for particles was not being get rid of. Again fixes #15591
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 3255726c1f..8452afb045 100644
--- a/drivers/gles3/rasterizer_storage_gles3.cpp
+++ b/drivers/gles3/rasterizer_storage_gles3.cpp
@@ -6950,6 +6950,7 @@ bool RasterizerStorageGLES3::free(RID p_rid) {
memdelete(cls);
} else if (particles_owner.owns(p_rid)) {
Particles *particles = particles_owner.get(p_rid);
+ particles->instance_remove_deps();
particles_owner.free(p_rid);
memdelete(particles);
} else {