r300: Fix off-by-one error in calculation of scissor cliprect.
authorMichel Dänzer <michel@tungstengraphics.com>
Mon, 28 Jul 2008 08:49:43 +0000 (10:49 +0200)
committerMichel Dänzer <michel@tungstengraphics.com>
Mon, 28 Jul 2008 08:49:43 +0000 (10:49 +0200)
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=16123 .

src/mesa/drivers/dri/r300/radeon_state.c

index af2c3bcacd370dcc562389c481e0e7c5195d3f89..d81318ce20c81d7a31ebc540ff28b0f72e07405b 100644 (file)
@@ -125,8 +125,8 @@ void radeonUpdateScissor(GLcontext* ctx)
 
                radeon->state.scissor.rect.x1 = x1;
                radeon->state.scissor.rect.y1 = y1;
-               radeon->state.scissor.rect.x2 = x1 + ctx->Scissor.Width - 1;
-               radeon->state.scissor.rect.y2 = y1 + ctx->Scissor.Height - 1;
+               radeon->state.scissor.rect.x2 = x1 + ctx->Scissor.Width;
+               radeon->state.scissor.rect.y2 = y1 + ctx->Scissor.Height;
 
                radeonRecalcScissorRects(radeon);
        }