mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
gallium: added an (int) cast in setup_bitmap_vertex_data() to fix a signed/unsigned arithmetic problem
Negative values became very large uints.
This commit is contained in:
parent
cbfe6ee5d5
commit
f6908a766d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue