projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aba1ba
)
glsl: Silence gcc uninitialized variable warning.
author
Vinson Lee
<vlee@vmware.com>
Mon, 24 Aug 2009 17:43:02 +0000
(11:43 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 24 Aug 2009 17:43:02 +0000
(11:43 -0600)
src/mesa/shader/slang/slang_builtin.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_builtin.c
b/src/mesa/shader/slang/slang_builtin.c
index 289d94644f01bf623170af25efc0bcf9c14ebbc3..4e67241f3b254807a1dbf3d9bf7d644c35001deb 100644
(file)
--- a/
src/mesa/shader/slang/slang_builtin.c
+++ b/
src/mesa/shader/slang/slang_builtin.c
@@
-436,7
+436,7
@@
emit_statevars(const char *name, int array_len,
struct gl_program_parameter_list *paramList)
{
if (type->type == SLANG_SPEC_ARRAY) {
- GLint i, pos;
+ GLint i, pos
= -1
;
assert(array_len > 0);
if (strcmp(name, "gl_ClipPlane") == 0) {
tokens[0] = STATE_CLIPPLANE;