diff options
author | Brian Paul <[email protected]> | 2009-09-04 09:15:35 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-04 09:17:59 -0600 |
commit | 592a6642fc5c9f697bcc6521c99fe00b2de827c8 (patch) | |
tree | f4e8a49703124c4a875cbb910e66548fcc5988b1 /src/mesa/shader/program_parse.tab.c | |
parent | 3fedd08779c2bc4a5f02c035e7ca4cab5da649dd (diff) |
ARB prog: replace 'unsigned' with 'gl_state_index'
Fixes compilation warnings with MSVC.
Diffstat (limited to 'src/mesa/shader/program_parse.tab.c')
-rw-r--r-- | src/mesa/shader/program_parse.tab.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/shader/program_parse.tab.c b/src/mesa/shader/program_parse.tab.c index 4d99e45fbed..9f2d4de90fc 100644 --- a/src/mesa/shader/program_parse.tab.c +++ b/src/mesa/shader/program_parse.tab.c @@ -324,7 +324,7 @@ typedef union YYSTYPE unsigned attrib; int integer; float real; - unsigned state[5]; + gl_state_index state[STATE_LENGTH]; int negate; struct asm_vector vector; gl_inst_opcode opcode; @@ -4946,8 +4946,7 @@ int add_state_reference(struct gl_program_parameter_list *param_list, name = _mesa_program_state_string(tokens); index = _mesa_add_parameter(param_list, PROGRAM_STATE_VAR, name, - size, GL_NONE, - NULL, (gl_state_index *) tokens, 0x0); + size, GL_NONE, NULL, tokens, 0x0); param_list->StateFlags |= _mesa_program_state_flags(tokens); /* free name string here since we duplicated it in add_parameter() */ |