summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-08-24 11:43:02 -0600
committerBrian Paul <[email protected]>2009-08-24 11:43:02 -0600
commitf785b35b47926e052571386227eff58db7c084e2 (patch)
tree7ac9fa4daca5f3c08662cd34d13ad1695e0bf882
parent1aba1baa622116759bfedca87f37e527c0111d16 (diff)
glsl: Silence gcc uninitialized variable warning.
-rw-r--r--src/mesa/shader/slang/slang_builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_builtin.c b/src/mesa/shader/slang/slang_builtin.c
index 289d94644f0..4e67241f3b2 100644
--- 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;