From: Brian Paul Date: Mon, 21 Apr 2003 15:04:30 +0000 (+0000) Subject: remove unneeded unsigned int / zero comparisons X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=464bc3b6747108dd32e4a9fcfe6549a9d4a52a95;p=mesa.git remove unneeded unsigned int / zero comparisons --- diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 33e3ea140fa..8feda650cc5 100644 --- a/src/mesa/main/api_validate.c +++ b/src/mesa/main/api_validate.c @@ -1,10 +1,8 @@ -/* $Id: api_validate.c,v 1.7 2002/10/24 23:57:19 brianp Exp $ */ - /* * Mesa 3-D graphics library - * Version: 4.1 + * Version: 5.1 * - * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -45,8 +43,7 @@ _mesa_validate_DrawElements(GLcontext *ctx, return GL_FALSE; } - if (mode < 0 || - mode > GL_POLYGON) { + if (mode > GL_POLYGON) { _mesa_error(ctx, GL_INVALID_ENUM, "glDrawArrays(mode)" ); return GL_FALSE; } @@ -86,7 +83,7 @@ _mesa_validate_DrawRangeElements(GLcontext *ctx, GLenum mode, return GL_FALSE; } - if (mode < 0 || mode > GL_POLYGON) { + if (mode > GL_POLYGON) { _mesa_error(ctx, GL_INVALID_ENUM, "glDrawArrays(mode)" ); return GL_FALSE; } @@ -126,7 +123,7 @@ _mesa_validate_DrawArrays(GLcontext *ctx, return GL_FALSE; } - if (mode < 0 || mode > GL_POLYGON) { + if (mode > GL_POLYGON) { _mesa_error(ctx, GL_INVALID_ENUM, "glDrawArrays(mode)" ); return GL_FALSE; }