r600: fix scissor also.
authorDave Airlie <airlied@redhat.com>
Fri, 28 Aug 2009 01:05:29 +0000 (11:05 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 28 Aug 2009 01:05:29 +0000 (11:05 +1000)
I forgot about r600 being here.

src/mesa/drivers/dri/r600/r700_state.c

index 30cf2dd399d413f8425d8749c83d90ea0b673882..91cb492ce6a25240e1d3456b6ea03e007f8c4b1e 100644 (file)
@@ -1288,8 +1288,8 @@ void r700SetScissor(context_t *context) //---------------
        if (context->radeon.state.scissor.enabled) {
                x1 = context->radeon.state.scissor.rect.x1;
                y1 = context->radeon.state.scissor.rect.y1;
-               x2 = context->radeon.state.scissor.rect.x2 - 1;
-               y2 = context->radeon.state.scissor.rect.y2 - 1;
+               x2 = context->radeon.state.scissor.rect.x2;
+               y2 = context->radeon.state.scissor.rect.y2;
        } else {
                if (context->radeon.radeonScreen->driScreen->dri2.enabled) {
                        x1 = 0;