Merge pull request #1062 from raven02/patch-13

int sign match for gstate_c.curRTWidth/gstate_c.curRTHeight
This commit is contained in:
Henrik Rydgård 2013-03-24 06:35:01 -07:00
commit 959bcae77f

View File

@ -260,9 +260,9 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
int scissorY2 = (gstate.scissor2 >> 10) & 0x3FF; int scissorY2 = (gstate.scissor2 >> 10) & 0x3FF;
// This is a bit of a hack as the render buffer isn't always that size // This is a bit of a hack as the render buffer isn't always that size
if (scissorX1 == 0 && scissorY1 == 0 && if (scissorX1 == 0 && scissorY1 == 0
scissorX2 >= gstate_c.curRTWidth - 1 && && scissorX2 >= (int) (gstate_c.curRTWidth - 1)
scissorY2 >= gstate_c.curRTHeight - 1) { && scissorY2 >= (int) (gstate_c.curRTHeight - 1)) {
glstate.scissorTest.disable(); glstate.scissorTest.disable();
} else { } else {
glstate.scissorTest.enable(); glstate.scissorTest.enable();