diff options
author | Roland Scheidegger <[email protected]> | 2007-11-29 03:08:18 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2007-11-29 03:08:48 +0100 |
commit | e0719d7122e1ac0659c8195ae267a45579c4070c (patch) | |
tree | 7159c0a8274f66f27dcc16f8ff89acaaabca26e7 /src/mesa | |
parent | 3f18c0a9f27fded8f52a5f0c5b8ad71f71c46aa2 (diff) |
make sure state token values are fully initialized
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/arbprogparse.c | 2 | ||||
-rw-r--r-- | src/mesa/shader/prog_parameter.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index 6a87a1779e7..e7875242821 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -1759,7 +1759,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)++) { diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c index 9e3d3fecf22..46d30872e4f 100644 --- a/src/mesa/shader/prog_parameter.c +++ b/src/mesa/shader/prog_parameter.c @@ -384,7 +384,7 @@ sizeof_state_reference(const GLint *stateTokens) * PARAM ambient = state.material.front.ambient; * * \param paramList the parameter list - * \param state an array of 6 (STATE_LENGTH) state tokens + * \param stateTokens an array of 5 (STATE_LENGTH) state tokens * \return index of the new parameter. */ GLint |