mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Properly dispose of instance capture data, fixes #14795
This commit is contained in:
@@ -6906,6 +6906,7 @@ bool RasterizerStorageGLES3::free(RID p_rid) {
|
||||
|
||||
// delete the texture
|
||||
GIProbe *gi_probe = gi_probe_owner.get(p_rid);
|
||||
gi_probe->instance_remove_deps();
|
||||
|
||||
gi_probe_owner.free(p_rid);
|
||||
memdelete(gi_probe);
|
||||
@@ -6921,6 +6922,7 @@ bool RasterizerStorageGLES3::free(RID p_rid) {
|
||||
|
||||
// delete the texture
|
||||
LightmapCapture *lightmap_capture = lightmap_capture_data_owner.get(p_rid);
|
||||
lightmap_capture->instance_remove_deps();
|
||||
|
||||
gi_probe_owner.free(p_rid);
|
||||
memdelete(lightmap_capture);
|
||||
|
||||
Reference in New Issue
Block a user