From: Michel Dänzer Date: Mon, 28 Jul 2008 08:49:43 +0000 (+0200) Subject: r300: Fix off-by-one error in calculation of scissor cliprect. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57aea290e1e0a26d1e74df6cff777eb9f038f1f8;p=mesa.git r300: Fix off-by-one error in calculation of scissor cliprect. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=16123 . --- diff --git a/src/mesa/drivers/dri/r300/radeon_state.c b/src/mesa/drivers/dri/r300/radeon_state.c index af2c3bcacd3..d81318ce20c 100644 --- a/src/mesa/drivers/dri/r300/radeon_state.c +++ b/src/mesa/drivers/dri/r300/radeon_state.c @@ -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); }