summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-22 15:49:38 -0600
committerBrian Paul <brianp@vmware.com>2009-05-22 15:49:38 -0600
commit2d30dafaddc2e50697bd1b55235fd45fd08d09fd (patch)
treec8c61416e839d4814aa565f2b751c3144b29202d /src/mesa
parent68d412f31cbf028b1faa1c7fd95b849a95bb762c (diff)
mesa: fix warning message in vbo_exec_DrawRangeElements()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/vbo/vbo_exec_array.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
index cbb9b23968..2815ba3cc9 100644
--- a/src/mesa/vbo/vbo_exec_array.c
+++ b/src/mesa/vbo/vbo_exec_array.c
@@ -365,7 +365,8 @@ vbo_exec_DrawRangeElements(GLenum mode,
/* the max element is out of bounds of one or more enabled arrays */
_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);
+ start, end, count, type, end,
+ ctx->Array.ArrayObj->_MaxElement);
if (0)
_mesa_print_arrays(ctx);
return;