mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
st/mesa: Silence uninitialized variable warning in st_cb_bitmap.c.
This commit is contained in:
parent
19045d3749
commit
218590f707
1 changed files with 2 additions and 1 deletions
|
|
@ -637,7 +637,7 @@ accum_bitmap(struct st_context *st,
|
|||
const GLubyte *bitmap )
|
||||
{
|
||||
struct bitmap_cache *cache = st->bitmap.cache;
|
||||
int px = -999, py;
|
||||
int px = -999, py = -999;
|
||||
const GLfloat z = st->ctx->Current.RasterPos[2];
|
||||
|
||||
if (width > BITMAP_CACHE_WIDTH ||
|
||||
|
|
@ -671,6 +671,7 @@ accum_bitmap(struct st_context *st,
|
|||
}
|
||||
|
||||
assert(px != -999);
|
||||
assert(py != -999);
|
||||
|
||||
if (x < cache->xmin)
|
||||
cache->xmin = x;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue