projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2cf522
)
mesa: issue warning for out of bounds array indexes
author
Brian Paul
<brianp@vmware.com>
Fri, 8 May 2009 18:44:38 +0000
(12:44 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 8 May 2009 18:45:08 +0000
(12:45 -0600)
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 27049486ee95d99c04dfb7cdc1507739f1db07ef..d5c604c56a2e70ee34f92d4f6943ff92bc7724bd 100644
(file)
--- a/
src/mesa/main/api_validate.c
+++ b/
src/mesa/main/api_validate.c
@@
-184,6
+184,8
@@
_mesa_validate_DrawElements(GLcontext *ctx,
ctx->Array.ElementArrayBufferObj);
if (max >= ctx->Array._MaxElement) {
/* the max element is out of bounds of one or more enabled arrays */
+ _mesa_warning(ctx, "glDrawElements() index=%u is "
+ "out of bounds (max=%u)", max, ctx->Array._MaxElement);
return GL_FALSE;
}
}