projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c9870b
)
mach64: Silence uninitialized variable warnings.
author
Vinson Lee
<vlee@vmware.com>
Tue, 15 Dec 2009 01:20:34 +0000
(17:20 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 15 Dec 2009 01:20:34 +0000
(17:20 -0800)
src/mesa/drivers/dri/mach64/mach64_tris.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/mach64/mach64_tris.c
b/src/mesa/drivers/dri/mach64/mach64_tris.c
index f2e8e2e3ae8c59b4bd9b76dd55c5e0b4bba5d959..c2a0adfef02e0a25d6df2d53a48ea8e2dcbb34b5 100644
(file)
--- a/
src/mesa/drivers/dri/mach64/mach64_tris.c
+++ b/
src/mesa/drivers/dri/mach64/mach64_tris.c
@@
-1297,7
+1297,8
@@
do { \
#define LOCAL_VARS(n) \
mach64ContextPtr mmesa = MACH64_CONTEXT(ctx); \
- GLuint color[n], spec[n]; \
+ GLuint color[n] = { 0 }; \
+ GLuint spec[n] = { 0 }; \
GLuint vertex_size = mmesa->vertex_size; \
const GLuint xyoffset = 9; \
const GLuint coloroffset = 8; \