diff --git a/GPU/Software/BinManager.cpp b/GPU/Software/BinManager.cpp index 2a83f208cb..715377afec 100644 --- a/GPU/Software/BinManager.cpp +++ b/GPU/Software/BinManager.cpp @@ -179,7 +179,7 @@ void BinManager::UpdateState() { if (HasDirty(SoftDirty::BINNER_RANGE)) { DrawingCoords scissorTL(gstate.getScissorX1(), gstate.getScissorY1()); - DrawingCoords scissorBR(gstate.getScissorX2(), gstate.getScissorY2()); + DrawingCoords scissorBR(std::min(gstate.getScissorX2(), gstate.getRegionX2()), std::min(gstate.getScissorY2(), gstate.getRegionY2())); ScreenCoords screenScissorTL = TransformUnit::DrawingToScreen(scissorTL, 0); ScreenCoords screenScissorBR = TransformUnit::DrawingToScreen(scissorBR, 0); diff --git a/GPU/Software/SoftGpu.cpp b/GPU/Software/SoftGpu.cpp index 42831ae5a4..dcba967393 100644 --- a/GPU/Software/SoftGpu.cpp +++ b/GPU/Software/SoftGpu.cpp @@ -235,9 +235,9 @@ const SoftwareCommandTableEntry softgpuCommandTable[] = { { GE_CMD_MAXZ, 0, SoftDirty::PIXEL_BASIC | SoftDirty::PIXEL_CACHED }, // Region doesn't seem to affect scissor or anything. - // TODO: Double check, the registers are always set so they ought to... do something? - { GE_CMD_REGION1 }, - { GE_CMD_REGION2 }, + // As long as REGION1 is zero, REGION2 is effectively another scissor. + { GE_CMD_REGION1, 0, SoftDirty::BINNER_RANGE }, + { GE_CMD_REGION2, 0, SoftDirty::BINNER_RANGE }, // Scissor, only used by the binner. { GE_CMD_SCISSOR1, 0, SoftDirty::BINNER_RANGE },