Module: Mesa
Branch: master
Commit: f785b35b47926e052571386227eff58db7c084e2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f785b35b47926e052571386227eff58db7c084e2

Author: Vinson Lee <v...@vmware.com>
Date:   Mon Aug 24 11:43:02 2009 -0600

glsl: Silence gcc uninitialized variable warning.

---

 src/mesa/shader/slang/slang_builtin.c |    2 +-
 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 289d946..4e67241 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;

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to