Merge pull request #67051 from clayjohn/CanvasGroup-clear

Allow clearing backbuffer after finishing CanvasGroup
This commit is contained in:
Rémi Verschelde 2022-10-08 13:55:48 +02:00
commit 658929997d
2 changed files with 4 additions and 0 deletions

View File

@ -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) {

View File

@ -1475,6 +1475,8 @@ void RendererCanvasRenderRD::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) {