summaryrefslogtreecommitdiff
path: root/src/mesa/main/api_validate.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-03-04 01:24:44 -0800
committerVinson Lee <vlee@vmware.com>2010-03-04 01:24:44 -0800
commitf9504e75f02586a8561733e0e2711c65efa2979d (patch)
tree1bed33ed1fe8112902026b598a63f10a37e6671b /src/mesa/main/api_validate.c
parent0dd40cc20af78146c1d1d3ad1df0652b7cedc078 (diff)
mesa: Fix unsigned comparison.
Diffstat (limited to 'src/mesa/main/api_validate.c')
-rw-r--r--src/mesa/main/api_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index 326ad6f909..80bc826d21 100644
--- a/src/mesa/main/api_validate.c
+++ b/src/mesa/main/api_validate.c
@@ -147,7 +147,7 @@ check_index_bounds(GLcontext *ctx, GLsizei count, GLenum type,
vbo_get_minmax_index(ctx, &prim, &ib, &min, &max);
- if (min + basevertex < 0 ||
+ if (min < basevertex ||
max + basevertex > ctx->Array.ArrayObj->_MaxElement) {
/* the max element is out of bounds of one or more enabled arrays */
_mesa_warning(ctx, "glDrawElements() index=%u is "