diff options
author | Vinson Lee <[email protected]> | 2010-03-04 01:51:50 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-03-04 01:53:14 -0800 |
commit | 34b2cec95c9e7781f4d32deed9980f05ee553d1d (patch) | |
tree | 38c91e438e299788f094ada3f81b32dbe7b3319d /src/mesa/main/api_validate.c | |
parent | ac610ab830287029b2636522625f56ed09c3870b (diff) |
Revert "mesa: Fix unsigned comparison."
This reverts commit f9504e75f02586a8561733e0e2711c65efa2979d.
This patch is incorrect.
Diffstat (limited to 'src/mesa/main/api_validate.c')
-rw-r--r-- | src/mesa/main/api_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 80bc826d21d..326ad6f909b 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 || + 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 " |