From 1aa61a877a61cf72833151f8e38aacdf7713ee03 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Wed, 7 Dec 2022 09:35:13 -0800 Subject: Properly free Skeleton RID in RenderingServer.free() --- drivers/gles3/storage/utilities.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gles3') 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; } -- cgit v1.2.3