summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-08-24 11:43:02 -0600
committerBrian Paul <[email protected]>2009-08-24 13:04:50 -0600
commit0a24e5011171d71ae88ef0a43b4625ea8d37a917 (patch)
tree5d9f4a8f76492b971cc6ab09a865c2e331c85510 /src
parent4eb72568541803fe45d04d9e230212f4f0928ec9 (diff)
glsl: Silence gcc uninitialized variable warning.
Diffstat (limited to 'src')
-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 ad2e306c19e..bef0f856534 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;