projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dd40cc
)
mesa: Fix unsigned comparison.
author
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 09:24:44 +0000
(
01:24
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 09:24:44 +0000
(
01:24
-0800)
src/mesa/main/api_validate.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/api_validate.c
b/src/mesa/main/api_validate.c
index 326ad6f909bb18f78eb13855d2ffa2f07a579b0d..80bc826d21dff472cbf5be201b6d51e7addbfcbf 100644
(file)
--- 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 "