OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7430c3a
)
r128: Silence uninitialized variable warnings in r128_tris.c.
author
Vinson Lee
<vlee@vmware.com>
Tue, 15 Dec 2009 21:12:12 +0000
(13:12 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 15 Dec 2009 21:12:12 +0000
(13:12 -0800)
src/mesa/drivers/dri/r128/r128_tris.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r128/r128_tris.c
b/src/mesa/drivers/dri/r128/r128_tris.c
index
5b91271
..
82d825b
100644
(file)
--- a/
src/mesa/drivers/dri/r128/r128_tris.c
+++ b/
src/mesa/drivers/dri/r128/r128_tris.c
@@
-216,7
+216,8
@@
do { \
#define LOCAL_VARS(n) \
r128ContextPtr rmesa = R128_CONTEXT(ctx); \
- GLuint color[n], spec[n]; \
+ GLuint color[n] = { 0 }; \
+ GLuint spec[n] = { 0 }; \
GLuint coloroffset = rmesa->coloroffset; \
GLuint specoffset = rmesa->specoffset; \
GLboolean havespec = (rmesa->specoffset != 0); \