summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-06-02 09:16:33 -0600
committerBrian Paul <[email protected]>2009-06-03 17:15:59 -0600
commitab4fd185843033cde0c58e8e0da932dbac7b8df2 (patch)
treecd0abb687c126ee1d0d63f56ebf006e96578de71 /src/mesa/vbo
parent1ad15768365617e6795155723843fc440593d7c4 (diff)
vbo: tweak out-of-bounds VBO access error message
Subtract 1 from _MaxElement to be clearer.
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r--src/mesa/vbo/vbo_exec_array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
index 2815ba3cc92..cd0397ab4c8 100644
--- 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;