projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1ebd30
)
Fixed off by one errors in clipping.
author
Ville Syrjala
<syrjala@freedesktop.org>
Sat, 16 Oct 2004 11:09:26 +0000
(11:09 +0000)
committer
Ville Syrjala
<syrjala@freedesktop.org>
Sat, 16 Oct 2004 11:09:26 +0000
(11:09 +0000)
src/mesa/drivers/dri/mga/mgastate.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/mga/mgastate.c
b/src/mesa/drivers/dri/mga/mgastate.c
index 6e63294f65e713386ad71ef37dc8ce253e89468a..295d3f5a088e5b16629bacd203b7063307de7ed1 100644
(file)
--- a/
src/mesa/drivers/dri/mga/mgastate.c
+++ b/
src/mesa/drivers/dri/mga/mgastate.c
@@
-299,8
+299,8
@@
void mgaUpdateClipping(const GLcontext *ctx)
int x1 = mmesa->driDrawable->x + ctx->Scissor.X;
int y1 = mmesa->driDrawable->y + mmesa->driDrawable->h
- (ctx->Scissor.Y + ctx->Scissor.Height);
- int x2 = x1 + ctx->Scissor.Width
- 1
;
- int y2 = y1 + ctx->Scissor.Height
- 1
;
+ int x2 = x1 + ctx->Scissor.Width;
+ int y2 = y1 + ctx->Scissor.Height;
if (x1 < 0) x1 = 0;
if (y1 < 0) y1 = 0;