Hardcode the default value of ctx->Const.MaxClipPlanes to 6.
authorPaul Berry <stereotype441@gmail.com>
Thu, 8 Sep 2011 01:24:00 +0000 (18:24 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 20 Sep 2011 21:51:10 +0000 (14:51 -0700)
commit2dfa33a5e9325bfe9adb3a15aba466e3f15eb2c5
treec65ba70a6fecbc9e730df3985f8fd1f2b6bb973a
parent8be653164d7c64d8e463c5e95ed6b65d6eba3dcf
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 <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/context.c