projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19045d3
)
st/mesa: Silence uninitialized variable warning in st_cb_bitmap.c.
author
Vinson Lee
<vlee@vmware.com>
Thu, 11 Feb 2010 02:37:46 +0000
(18:37 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 11 Feb 2010 02:37:46 +0000
(18:37 -0800)
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 85420a950f49da4f355b4880f52f3d21bd7e5421..25430bba77d7b3fbfa08c158814a1087ca75085f 100644
(file)
--- 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;