mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 05:50:11 +01:00
gallium: fix off by one rasterpos bug
This commit is contained in:
parent
36aa9cf781
commit
80efc5feb0
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ rastpos_point(struct draw_stage *stage, struct prim_header *prim)
|
|||
/* update raster pos */
|
||||
pos = prim->v[0]->data[0];
|
||||
ctx->Current.RasterPos[0] = pos[0];
|
||||
ctx->Current.RasterPos[1] = height - 1 - pos[1];
|
||||
ctx->Current.RasterPos[1] = height - pos[1]; /* invert Y */
|
||||
ctx->Current.RasterPos[2] = pos[2];
|
||||
ctx->Current.RasterPos[3] = pos[3];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue