Merge pull request #88873 from clayjohn/GLES3-compositor-free

Add `compositor_free` branch in Compatibility scene renderer free function
This commit is contained in:
Rémi Verschelde 2024-02-27 10:18:35 +01:00
commit b38d5efd6a
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 4 additions and 0 deletions

View File

@ -3969,6 +3969,10 @@ bool RasterizerSceneGLES3::free(RID p_rid) {
} else if (RSG::camera_attributes->owns_camera_attributes(p_rid)) {
//not much to delete, just free it
RSG::camera_attributes->camera_attributes_free(p_rid);
} else if (is_compositor(p_rid)) {
compositor_free(p_rid);
} else if (is_compositor_effect(p_rid)) {
compositor_effect_free(p_rid);
} else {
return false;
}