mesa: Fix unsigned comparison.

This commit is contained in:
Vinson Lee 2010-03-04 01:24:44 -08:00
parent 0dd40cc20a
commit f9504e75f0

View file

@ -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 "