summaryrefslogtreecommitdiff
path: root/src/mesa/shader/program_parse.y
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-04 09:15:35 -0600
committerBrian Paul <brianp@vmware.com>2009-09-04 09:17:59 -0600
commit592a6642fc5c9f697bcc6521c99fe00b2de827c8 (patch)
treef4e8a49703124c4a875cbb910e66548fcc5988b1 /src/mesa/shader/program_parse.y
parent3fedd08779c2bc4a5f02c035e7ca4cab5da649dd (diff)
ARB prog: replace 'unsigned' with 'gl_state_index'
Fixes compilation warnings with MSVC.
Diffstat (limited to 'src/mesa/shader/program_parse.y')
-rw-r--r--src/mesa/shader/program_parse.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y
index 2f5d3037f42..06c1915fbee 100644
--- a/src/mesa/shader/program_parse.y
+++ b/src/mesa/shader/program_parse.y
@@ -117,7 +117,7 @@ static struct asm_instruction *asm_instruction_ctor(gl_inst_opcode op,
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;
@@ -2077,8 +2077,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() */