projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ad1576
)
vbo: tweak out-of-bounds VBO access error message
author
Brian Paul
<brianp@vmware.com>
Tue, 2 Jun 2009 15:16:33 +0000
(09:16 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 3 Jun 2009 23:15:59 +0000
(17:15 -0600)
Subtract 1 from _MaxElement to be clearer.
src/mesa/vbo/vbo_exec_array.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_exec_array.c
b/src/mesa/vbo/vbo_exec_array.c
index 2815ba3cc92da1155f5116f54bcd997647df5117..cd0397ab4c8f96f5ba103b36a778b284a34937fd 100644
(file)
--- a/
src/mesa/vbo/vbo_exec_array.c
+++ b/
src/mesa/vbo/vbo_exec_array.c
@@
-366,7
+366,7
@@
vbo_exec_DrawRangeElements(GLenum mode,
_mesa_warning(ctx, "glDraw[Range]Elements(start %u, end %u, count %d, "
"type 0x%x) index=%u is out of bounds (max=%u)",
start, end, count, type, end,
- ctx->Array.ArrayObj->_MaxElement);
+ ctx->Array.ArrayObj->_MaxElement
- 1
);
if (0)
_mesa_print_arrays(ctx);
return;