projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbfe6ee
)
gallium: added an (int) cast in setup_bitmap_vertex_data() to fix a signed/unsigned...
author
Brian
<brian.paul@tungstengraphics.com>
Sat, 29 Mar 2008 00:18:55 +0000
(18:18 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Sat, 29 Mar 2008 00:18:55 +0000
(18:18 -0600)
Negative values became very large uints.
src/mesa/state_tracker/st_cb_bitmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_bitmap.c
b/src/mesa/state_tracker/st_cb_bitmap.c
index 464e22d576b97bb9f8c424e55425cb310cb288d8..b600b92dc6eca0de7021a49ca2f3ab26d98fb0e7 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_bitmap.c
+++ b/
src/mesa/state_tracker/st_cb_bitmap.c
@@
-351,7
+351,7
@@
setup_bitmap_vertex_data(struct st_context *st,
const GLboolean invert = (st_fb_orientation(fb) == Y_0_TOP);
const GLfloat x0 = x;
const GLfloat x1 = x + width;
- const GLfloat y0 = invert ? (fb->Height - y - height) : y;
+ const GLfloat y0 = invert ? (
(int)
fb->Height - y - height) : y;
const GLfloat y1 = invert ? (y0 + height) : y + height;
const GLfloat bias = st->bitmap_texcoord_bias;
const GLfloat xBias = bias / (x1-x0);