Merge pull request #69733 from clayjohn/GLES3-skeleton-leak

Properly free Skeleton RID in RenderingServer.free()
This commit is contained in:
Rémi Verschelde 2022-12-07 22:23:40 +01:00 committed by GitHub
commit cf093f8e47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}