Disable scissor test when clearing on OpenGL (#4029)

This commit is contained in:
Adrian Cojocaru
2026-01-07 14:21:34 +02:00
committed by GitHub
parent d7314cd87f
commit 93cf075338
7 changed files with 19 additions and 31 deletions

View File

@@ -72,7 +72,8 @@ void RenderTarget::render(RenderOrchestrator& orchestrator, const RenderTree& re
.clearStencil = {}});
const gfx::ScissorRect prevScissorRect = parameters.scissorRect;
parameters.scissorRect = {.x = 0, .y = 0, .width = 0, .height = 0};
const auto& size = getTexture()->getSize();
parameters.scissorRect = {.x = 0, .y = 0, .width = size.width, .height = size.height};
// Run layer tweakers to update any dynamic elements
parameters.currentLayer = 0;