[Mesa-dev] [PATCH 1/5] mesa: Update clipping code to use ctx->Const.MaxClipPlanes.

Brian Paul brianp at vmware.com
Wed Sep 14 14:32:53 PDT 2011


On 09/14/2011 01:49 PM, Paul Berry wrote:
> 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.
> ---
>   src/mesa/main/attrib.c |    4 ++--
>   src/mesa/main/matrix.c |    2 +-
>   2 files changed, 3 insertions(+), 3 deletions(-)

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the mesa-dev mailing list