Revert "mesa: Fix unsigned comparison."

This reverts commit f9504e75f0.

This patch is incorrect.
This commit is contained in:
Vinson Lee
2010-03-04 01:51:50 -08:00
parent ac610ab830
commit 34b2cec95c
+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 ||
if (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 "