diff options
author | Paul Berry <[email protected]> | 2011-09-07 18:24:00 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-09-20 14:51:10 -0700 |
commit | 2dfa33a5e9325bfe9adb3a15aba466e3f15eb2c5 (patch) | |
tree | c65ba70a6fecbc9e730df3985f8fd1f2b6bb973a /src/mesa/main/context.c | |
parent | 8be653164d7c64d8e463c5e95ed6b65d6eba3dcf (diff) |
Hardcode the default value of ctx->Const.MaxClipPlanes to 6.
Previously this value was set to MAX_CLIP_PLANES, which is defined to
be 6. But MAX_CLIP_PLANES needs to be increased to 8 to support
GLSL-1.30-compliant drivers. This patch hard-codes the default value
of ctx->Const.MaxClipPlanes to 6, so that when MAX_CLIP_PLANES is
increased, it won't affect drivers that do not support 8 clip planes.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 0cf794735bb..b20063c33b2 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -582,7 +582,7 @@ _mesa_init_constants(struct gl_context *ctx) ctx->Const.MaxLineWidthAA = MAX_LINE_WIDTH; ctx->Const.LineWidthGranularity = (GLfloat) LINE_WIDTH_GRANULARITY; ctx->Const.MaxColorTableSize = MAX_COLOR_TABLE_SIZE; - ctx->Const.MaxClipPlanes = MAX_CLIP_PLANES; + ctx->Const.MaxClipPlanes = 6; ctx->Const.MaxLights = MAX_LIGHTS; ctx->Const.MaxShininess = 128.0; ctx->Const.MaxSpotExponent = 128.0; |