mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
i915g: Fix off-by-one in scissors.
This commit is contained in:
parent
3d9000393b
commit
a2c467c054
1 changed files with 2 additions and 2 deletions
|
|
@ -268,8 +268,8 @@ static void upload_SCISSOR_RECT(struct i915_context *i915)
|
|||
{
|
||||
unsigned x1 = i915->scissor.minx;
|
||||
unsigned y1 = i915->scissor.miny;
|
||||
unsigned x2 = i915->scissor.maxx;
|
||||
unsigned y2 = i915->scissor.maxy;
|
||||
unsigned x2 = i915->scissor.maxx - 1;
|
||||
unsigned y2 = i915->scissor.maxy - 1;
|
||||
unsigned sc[3];
|
||||
|
||||
sc[0] = _3DSTATE_SCISSOR_RECT_0_CMD;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue