ARB prog parser: Regenerate parser from previous commit
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 24 Aug 2009 18:59:58 +0000 (11:59 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 24 Aug 2009 19:00:35 +0000 (12:00 -0700)
src/mesa/shader/program_parse.tab.c

index dbed448113e9b59fb2cacafbd92785bcd985769d..5c604c2fd1f06d8aebad9f4b46b8185c0025684d 100644 (file)
@@ -5156,12 +5156,12 @@ _mesa_parse_arb_program(GLcontext *ctx, GLenum target, const GLubyte *str,
       ? & ctx->Const.VertexProgram
       : & ctx->Const.FragmentProgram;
 
-   state->MaxTextureImageUnits = 16;
-   state->MaxTextureCoordUnits = 8;
-   state->MaxTextureUnits = 8;
-   state->MaxClipPlanes = 6;
-   state->MaxLights = 8;
-   state->MaxProgramMatrices = 8;
+   state->MaxTextureImageUnits = ctx->Const.MaxTextureImageUnits;
+   state->MaxTextureCoordUnits = ctx->Const.MaxTextureCoordUnits;
+   state->MaxTextureUnits = ctx->Const.MaxTextureUnits;
+   state->MaxClipPlanes = ctx->Const.MaxClipPlanes;
+   state->MaxLights = ctx->Const.MaxLights;
+   state->MaxProgramMatrices = ctx->Const.MaxProgramMatrices;
 
    state->state_param_enum = (target == GL_VERTEX_PROGRAM_ARB)
       ? STATE_VERTEX_PROGRAM : STATE_FRAGMENT_PROGRAM;