projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36aa9cf
)
gallium: fix off by one rasterpos bug
author
Brian
<brian@poulsbo.localnet.net>
Tue, 26 Feb 2008 21:25:36 +0000
(14:25 -0700)
committer
Brian
<brian@poulsbo.localnet.net>
Tue, 26 Feb 2008 21:32:57 +0000
(14:32 -0700)
src/mesa/state_tracker/st_cb_rasterpos.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_rasterpos.c
b/src/mesa/state_tracker/st_cb_rasterpos.c
index 5b0eb6022beb661640de4cfa2678c3750dc9876f..4d73916a35460a3270f7cd6ca580d14482705a9b 100644
(file)
--- 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];