From 4765e5fa64883c77aefd25ba0fd43b1250760fda Mon Sep 17 00:00:00 2001 From: clayjohn Date: Fri, 7 Oct 2022 14:13:40 -0700 Subject: Allow clearing backbuffer after finishing CanvasGroup This avoids an issue where having multiple CanvasGroups overlap would create a weird artifact --- drivers/gles3/rasterizer_canvas_gles3.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers') diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp index ab232e712c..c635e18132 100644 --- a/drivers/gles3/rasterizer_canvas_gles3.cpp +++ b/drivers/gles3/rasterizer_canvas_gles3.cpp @@ -300,6 +300,8 @@ void RasterizerCanvasGLES3::canvas_render_items(RID p_to_render_target, Item *p_ } canvas_group_owner = nullptr; + // Backbuffer is dirty now and needs to be re-cleared if another CanvasGroup needs it. + backbuffer_cleared = false; } if (backbuffer_copy) { -- cgit v1.2.3