diff options
author | Brian <[email protected]> | 2007-02-22 09:29:46 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-02-22 09:29:46 -0700 |
commit | 776bc9cf55b116e17dddde4d097985b51879c83f (patch) | |
tree | 7f2b21fffc33807b0bd8d23636a1fd024f90d822 /src/mesa/shader/prog_parameter.c | |
parent | 3f4826a358cab8b6d638fc8eb46aef668a7bcf46 (diff) |
Undo some STATE_POINT/FOG changes. Max length of state token array is now 5.
Diffstat (limited to 'src/mesa/shader/prog_parameter.c')
-rw-r--r-- | src/mesa/shader/prog_parameter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c index 3ebd559119c..505c5016ac2 100644 --- a/src/mesa/shader/prog_parameter.c +++ b/src/mesa/shader/prog_parameter.c @@ -379,7 +379,7 @@ _mesa_add_state_reference(struct gl_program_parameter_list *paramList, /* Check if the state reference is already in the list */ for (index = 0; index < (GLint) paramList->NumParameters; index++) { GLuint i, match = 0; - for (i = 0; i < 6; i++) { + for (i = 0; i < STATE_LENGTH; i++) { if (paramList->Parameters[index].StateIndexes[i] == stateTokens[i]) { match++; } |