glsl: Silence gcc uninitialized variable warning.
authorVinson Lee <vlee@vmware.com>
Mon, 24 Aug 2009 17:43:02 +0000 (11:43 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 24 Aug 2009 17:43:02 +0000 (11:43 -0600)
src/mesa/shader/slang/slang_builtin.c

index 289d94644f01bf623170af25efc0bcf9c14ebbc3..4e67241f3b254807a1dbf3d9bf7d644c35001deb 100644 (file)
@@ -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;