mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-14 07:30:18 +01:00
Fixed off by one errors in clipping.
This commit is contained in:
parent
b1ebd306bf
commit
63e9a968ff
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue