summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2024-02-26 07:45:42 -0800
committerclayjohn <claynjohn@gmail.com>2024-02-26 17:56:55 -0800
commit57f8b885de20a1d3a665eb8ac9a4bb85daee4d6c (patch)
tree66f5d981865cadf601d06d50bb7d1e0cfe52b9ee /drivers
parentbb6b06c81343073f10cbbd2af515cf0dac1e6549 (diff)
downloadredot-engine-57f8b885de20a1d3a665eb8ac9a4bb85daee4d6c.tar.gz
Add compositor_free branch in Compatibility scene renderer free function
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles3/rasterizer_scene_gles3.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp
index 59894ca4e3..45e7f1ff32 100644
--- a/drivers/gles3/rasterizer_scene_gles3.cpp
+++ b/drivers/gles3/rasterizer_scene_gles3.cpp
@@ -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;
}