mesa: Update clipping code to use ctx->Const.MaxClipPlanes.
authorPaul Berry <stereotype441@gmail.com>
Thu, 8 Sep 2011 00:44:28 +0000 (17:44 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 20 Sep 2011 21:51:03 +0000 (14:51 -0700)
commit27bdc76eb92b11bcd61b829bd1372866cb9ef304
tree7dcfb46b9415d38156b7c4a1394f6b5a2b1aacc2
parentc773de133aaf9e83f236ba0a06caf37b100bb1d5
mesa: Update clipping code to use ctx->Const.MaxClipPlanes.

To support GLSL 1.30, we will need to increase MAX_CLIP_PLANES to 8.
To avoid breaking drivers that do not yet support 8 clip planes, this
patch modifies the Mesa core code that pertains to clipping to use
ctx->Const.MaxClipPlanes rather than MAX_CLIP_PLANES, since
ctx->Const.MaxClipPlanes will remain 6 for drivers that only support 6
clip planes.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/attrib.c
src/mesa/main/matrix.c