diff options
author | Brian Paul <[email protected]> | 2009-02-24 14:59:54 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-02-24 14:59:54 -0700 |
commit | 18d2745765715b03f9fda9a4c31d3678dc0bc457 (patch) | |
tree | 4d71ab1ae312e1a7dae6319faa68dc2e867e42af /src/mesa | |
parent | dd9742dc9ffc976d3caae87c1302b7b5ed7d3838 (diff) |
glsl: silence warning
Diffstat (limited to 'src/mesa')
-rw-r--r-- | 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 c0f4c79e136..9858a0f7fdc 100644 --- a/src/mesa/shader/slang/slang_builtin.c +++ b/src/mesa/shader/slang/slang_builtin.c @@ -494,7 +494,7 @@ emit_statevars(const char *name, int array_len, } else if (type->type == SLANG_SPEC_STRUCT) { const slang_variable_scope *fields = type->_struct->fields; - GLuint i, pos; + GLuint i, pos = 0; for (i = 0; i < fields->num_variables; i++) { const slang_variable *var = fields->variables[i]; GLint p = emit_statevars(var->a_name, 0, &var->type.specifier, |