diff options
author | Brian <brian@yutani.localnet.net> | 2007-02-23 11:21:03 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-02-23 11:21:03 -0700 |
commit | aa9d22a1c0f3256497088985c290d4046e089456 (patch) | |
tree | e018082a234f43039e7ee8dd2dc7699818690faa /src/mesa/shader/programopt.c | |
parent | 99902198de9a81fa95ab058048d618c5ecb7856e (diff) |
replace GLint with gl_state_index
Diffstat (limited to 'src/mesa/shader/programopt.c')
-rw-r--r-- | src/mesa/shader/programopt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/shader/programopt.c b/src/mesa/shader/programopt.c index 18da39c2d3..2d14cd3855 100644 --- a/src/mesa/shader/programopt.c +++ b/src/mesa/shader/programopt.c @@ -56,7 +56,7 @@ _mesa_insert_mvp_code(GLcontext *ctx, struct gl_vertex_program *vprog) * Setup state references for the modelview/projection matrix. * XXX we should check if these state vars are already declared. */ - static const GLint mvpState[4][STATE_LENGTH] = { + static const gl_state_index mvpState[4][STATE_LENGTH] = { { STATE_MVP_MATRIX, 0, 0, 0, 0 }, /* state.matrix.mvp.row[0] */ { STATE_MVP_MATRIX, 0, 1, 1, 0 }, /* state.matrix.mvp.row[1] */ { STATE_MVP_MATRIX, 0, 2, 2, 0 }, /* state.matrix.mvp.row[2] */ @@ -125,9 +125,9 @@ _mesa_insert_mvp_code(GLcontext *ctx, struct gl_vertex_program *vprog) void _mesa_append_fog_code(GLcontext *ctx, struct gl_fragment_program *fprog) { - static const GLint fogPStateOpt[STATE_LENGTH] + static const gl_state_index fogPStateOpt[STATE_LENGTH] = { STATE_INTERNAL, STATE_FOG_PARAMS_OPTIMIZED, 0, 0, 0 }; - static const GLint fogColorState[STATE_LENGTH] + static const gl_state_index fogColorState[STATE_LENGTH] = { STATE_FOG_COLOR, 0, 0, 0, 0}; struct prog_instruction *newInst, *inst; const GLuint origLen = fprog->Base.NumInstructions; |