diff options
author | Vinson Lee <[email protected]> | 2010-02-10 18:37:46 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-10 18:37:46 -0800 |
commit | 218590f70723ce0683f70a0c7aab229f9bbd89a6 (patch) | |
tree | 5024c636133f33ceacdd7ef742044d9affc38aa6 /src/mesa/state_tracker/st_cb_bitmap.c | |
parent | 19045d3749827caf176ae5cfc00c81e4fd486d74 (diff) |
st/mesa: Silence uninitialized variable warning in st_cb_bitmap.c.
Diffstat (limited to 'src/mesa/state_tracker/st_cb_bitmap.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_bitmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index 85420a950f4..25430bba77d 100644 --- a/src/mesa/state_tracker/st_cb_bitmap.c +++ b/src/mesa/state_tracker/st_cb_bitmap.c @@ -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; |