summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/arbprogparse.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-27 15:52:00 -0600
committerBrian <[email protected]>2008-03-27 15:52:00 -0600
commita072094bf01fbdac255fd6ffa3e0100f6fc7cb6d (patch)
treec3be6f216779a2f31424a0933b0bdf606f8651e0 /src/mesa/shader/arbprogparse.c
parent50a20d472956d54e3dc66e6501f1e5fb8581c84f (diff)
make sure state token values are fully initialized
cherry-picked from master
Diffstat (limited to 'src/mesa/shader/arbprogparse.c')
-rw-r--r--src/mesa/shader/arbprogparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 38e174f3adc..2fd356efad1 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -1767,7 +1767,7 @@ parse_param_elements (GLcontext * ctx, const GLubyte ** inst,
{
GLint idx;
GLuint err = 0;
- gl_state_index state_tokens[STATE_LENGTH];
+ gl_state_index state_tokens[STATE_LENGTH] = {0, 0, 0, 0, 0};
GLfloat const_values[4];
switch (*(*inst)++) {