Fix comparison of unsigned value against < 0.

This commit is contained in:
Michel Dänzer
2010-03-05 00:15:40 +01:00
committed by Michel Dänzer
parent b37c541500
commit 391b396f3f
+1 -1
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 ((int)(min + basevertex) < 0 ||
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 "