Merge pull request #69733 from clayjohn/GLES3-skeleton-leak
Properly free Skeleton RID in RenderingServer.free()
This commit is contained in:
commit
cf093f8e47
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue