diff options
Diffstat (limited to 'src/mesa/main/clip.c')
-rw-r--r-- | src/mesa/main/clip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/clip.c b/src/mesa/main/clip.c index d2bbd8b9a02..14930e2be34 100644 --- a/src/mesa/main/clip.c +++ b/src/mesa/main/clip.c @@ -1,4 +1,4 @@ -/* $Id: clip.c,v 1.20 2001/03/03 20:33:27 brianp Exp $ */ +/* $Id: clip.c,v 1.21 2001/03/07 05:06:11 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -59,7 +59,7 @@ _mesa_ClipPlane( GLenum plane, const GLdouble *eq ) ASSERT_OUTSIDE_BEGIN_END(ctx); p = (GLint) plane - (GLint) GL_CLIP_PLANE0; - if (p < 0 || p >= ctx->Const.MaxClipPlanes) { + if (p < 0 || p >= (GLint) ctx->Const.MaxClipPlanes) { _mesa_error( ctx, GL_INVALID_ENUM, "glClipPlane" ); return; } @@ -114,7 +114,7 @@ _mesa_GetClipPlane( GLenum plane, GLdouble *equation ) ASSERT_OUTSIDE_BEGIN_END(ctx); p = (GLint) (plane - GL_CLIP_PLANE0); - if (p < 0 || p >= ctx->Const.MaxClipPlanes) { + if (p < 0 || p >= (GLint) ctx->Const.MaxClipPlanes) { _mesa_error( ctx, GL_INVALID_ENUM, "glGetClipPlane" ); return; } |