diff options
author | Brian <[email protected]> | 2008-02-26 14:25:36 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-02-26 14:32:57 -0700 |
commit | 80efc5feb061a8ed9c1e91ad3711547927fa29e3 (patch) | |
tree | 111bca07e39cb632f6b0b1c1f5503c3cbb31424b /src/mesa | |
parent | 36aa9cf781440ce685930586cbf53248cf9c0dc2 (diff) |
gallium: fix off by one rasterpos bug
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_rasterpos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c index 5b0eb6022be..4d73916a354 100644 --- a/src/mesa/state_tracker/st_cb_rasterpos.c +++ b/src/mesa/state_tracker/st_cb_rasterpos.c @@ -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]; |