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

@@ -230,9 +230,7 @@ void RenderPass::setScissorRect(MTL::ScissorRect rect) {
if (rect.height + rect.y > height) {
rect.height = height - rect.y;
}
if (rect.x != 0 || rect.y != 0 || rect.width != 0 || rect.height != 0) {
encoder->setScissorRect(rect);
}
encoder->setScissorRect(rect);
currentScissorRect = rect;
}
}