diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-12-07 22:23:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 22:23:40 +0100 |
commit | cf093f8e47f9508565cdc52bb724dbdb3d548e90 (patch) | |
tree | e2e7a765f608a85c0039971201869f7d0ebe46d4 /drivers/gles3 | |
parent | 5852efedbd5a09d6769cb99f76dd2fb3bfa1c16a (diff) | |
parent | 1aa61a877a61cf72833151f8e38aacdf7713ee03 (diff) |
Merge pull request #69733 from clayjohn/GLES3-skeleton-leak
Properly free Skeleton RID in RenderingServer.free()
Diffstat (limited to 'drivers/gles3')
-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; } |