You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Allow clearing backbuffer after finishing CanvasGroup
This avoids an issue where having multiple CanvasGroups overlap would create a weird artifact
This commit is contained in:
@@ -300,6 +300,8 @@ void RasterizerCanvasGLES3::canvas_render_items(RID p_to_render_target, Item *p_
|
|||||||
}
|
}
|
||||||
|
|
||||||
canvas_group_owner = nullptr;
|
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) {
|
if (backbuffer_copy) {
|
||||||
|
|||||||
@@ -1475,6 +1475,8 @@ void RendererCanvasRenderRD::canvas_render_items(RID p_to_render_target, Item *p
|
|||||||
}
|
}
|
||||||
|
|
||||||
canvas_group_owner = nullptr;
|
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) {
|
if (backbuffer_copy) {
|
||||||
|
|||||||
Reference in New Issue
Block a user