Only use scissor for clear rect when enabled

This commit is contained in:
Billy Laws 2022-10-09 14:05:25 +01:00
parent f93df35e6c
commit b5d0060c3f

View File

@ -93,7 +93,7 @@ namespace skyline::gpu::interconnect::maxwell3d {
});
}
if (clearSurfaceControl.useScissor0) {
if (clearSurfaceControl.useScissor0 && clearEngineRegisters.scissor0.enable) {
const auto &scissor0{clearEngineRegisters.scissor0};
scissor = rectIntersection(scissor, {
{scissor0.horizontal.xMin, scissor0.vertical.yMin},