glsl: Silence gcc uninitialized variable warning.

This commit is contained in:
Vinson Lee
2009-08-24 11:43:02 -06:00
committed by Brian Paul
parent 4eb7256854
commit 0a24e50111

View 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;