diff options
author | clayjohn <claynjohn@gmail.com> | 2022-12-07 09:35:13 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2022-12-07 09:35:13 -0800 |
commit | 1aa61a877a61cf72833151f8e38aacdf7713ee03 (patch) | |
tree | aabfb96d0582ce248d79858eba0980df15bebf6e /drivers/gles3/storage | |
parent | f3e6750a7e4702918e05f42b1376e30e652f2f90 (diff) |
Properly free Skeleton RID in RenderingServer.free()
Diffstat (limited to 'drivers/gles3/storage')
-rw-r--r-- | drivers/gles3/storage/utilities.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gles3/storage/utilities.cpp b/drivers/gles3/storage/utilities.cpp index fe900c7cfb..02a110e3e5 100644 --- a/drivers/gles3/storage/utilities.cpp +++ b/drivers/gles3/storage/utilities.cpp @@ -156,6 +156,9 @@ bool Utilities::free(RID p_rid) { } else if (GLES3::ParticlesStorage::get_singleton()->owns_particles_collision_instance(p_rid)) { GLES3::ParticlesStorage::get_singleton()->particles_collision_instance_free(p_rid); return true; + } else if (GLES3::MeshStorage::get_singleton()->owns_skeleton(p_rid)) { + GLES3::MeshStorage::get_singleton()->skeleton_free(p_rid); + return true; } else { return false; } |