[Mesa-dev] [PATCH 1/8] mesa: add comment that GL_CLIP_DISTANCE0 == GL_CLIP_PLANE0 in enable.c

Ian Romanick idr at freedesktop.org
Fri Aug 8 14:53:47 PDT 2014


Assuming patch 7 fixes the problem Pavel was seeing (and I'm not even
100% what problem that was), the series is

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 08/08/2014 02:20 PM, Brian Paul wrote:
> ---
>  src/mesa/main/enable.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
> index 0f3bcf0..417548a 100644
> --- a/src/mesa/main/enable.c
> +++ b/src/mesa/main/enable.c
> @@ -313,7 +313,7 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
>              }
>           }
>           break;
> -      case GL_CLIP_DISTANCE0:
> +      case GL_CLIP_DISTANCE0: /* aka GL_CLIP_PLANE0 */
>        case GL_CLIP_DISTANCE1:
>        case GL_CLIP_DISTANCE2:
>        case GL_CLIP_DISTANCE3:
> @@ -1202,7 +1202,7 @@ _mesa_IsEnabled( GLenum cap )
>  	 return ctx->Eval.AutoNormal;
>        case GL_BLEND:
>           return ctx->Color.BlendEnabled & 1;  /* return state for buffer[0] */
> -      case GL_CLIP_DISTANCE0:
> +      case GL_CLIP_DISTANCE0: /* aka GL_CLIP_PLANE0 */
>        case GL_CLIP_DISTANCE1:
>        case GL_CLIP_DISTANCE2:
>        case GL_CLIP_DISTANCE3:
> 



More information about the mesa-dev mailing list