mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
make sure state token values are fully initialized
This commit is contained in:
parent
ffee86f697
commit
8dc188485b
2 changed files with 2 additions and 2 deletions
|
|
@ -1768,7 +1768,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)++) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue