diff options
author | Brian Paul <[email protected]> | 2009-08-24 11:05:11 -0600 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2009-08-24 12:00:35 -0700 |
commit | 4cf27608bc069225bf91d47585e344a2c122e940 (patch) | |
tree | e39b8e70e6e41cc7eb2d5400b30c19a8efcf3465 /src/mesa/shader/program_parse.y | |
parent | 29473d25a34d24ce20564af93514a8d3b096966c (diff) |
ARB prog parser: use correct context limits
Diffstat (limited to 'src/mesa/shader/program_parse.y')
-rw-r--r-- | src/mesa/shader/program_parse.y | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y index 89e88502121..e2e83e484f5 100644 --- a/src/mesa/shader/program_parse.y +++ b/src/mesa/shader/program_parse.y @@ -2287,12 +2287,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; |