r600: fix dri2 clipping
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 8 Sep 2009 20:03:25 +0000 (16:03 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 24 Sep 2009 13:56:18 +0000 (09:56 -0400)
src/mesa/drivers/dri/r600/r700_state.c

index 1f4724e8384f7347ca61cb8767517d59d746fbcf..2a0b41925621ea02e4d4108e06f1fe6ae79a4aac 100644 (file)
@@ -1272,8 +1272,8 @@ void r700SetScissor(context_t *context) //---------------
                if (context->radeon.radeonScreen->driScreen->dri2.enabled) {
                        x1 = 0;
                        y1 = 0;
-                       x2 = rrb->base.Width - 1;
-                       y2 = rrb->base.Height - 1;
+                       x2 = rrb->base.Width;
+                       y2 = rrb->base.Height;
                } else {
                        x1 = rrb->dPriv->x;
                        y1 = rrb->dPriv->y;