[Mesa-dev] minor issues with GL_CLIP_DISTANCEx in enable.c, get.c

Brian Paul brian.e.paul at gmail.com
Sat Sep 24 15:44:14 PDT 2011

Hi Paul,

In enable.c:

1. At line 307, s/GL_CLIP_PLANE0/GL_CLIP_DISTANCE0/ to be consistent.

2. Need to check that p < ctx->Const.MaxClipPlanes.

3. In _mesa_IsEnabled(), need to s/GL_CLIP_PLANE/GL_CLIP_DISTANCE/,
add the two extra switch cases for planes 6,7 and check the plane
index against ctx->Const.MaxClipPlanes.

in get.c:

grep for GL_CLIP_PLANE and make similar changes.



More information about the mesa-dev mailing list