From: Brian Paul Date: Fri, 8 Aug 2014 13:45:42 +0000 (-0600) Subject: mesa: add comment that GL_CLIP_DISTANCE0 == GL_CLIP_PLANE0 in enable.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=288f8876228d2d61dca309b832105488daf5b0e8;p=mesa.git mesa: add comment that GL_CLIP_DISTANCE0 == GL_CLIP_PLANE0 in enable.c Reviewed-by: Ian Romanick Reviewed-by: Roland Scheidegger --- diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 0f3bcf0a9e2..417548a3cb8 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: