From 2d30dafaddc2e50697bd1b55235fd45fd08d09fd Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 22 May 2009 15:49:38 -0600 Subject: [PATCH] mesa: fix warning message in vbo_exec_DrawRangeElements() --- src/mesa/vbo/vbo_exec_array.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index cbb9b239683..2815ba3cc92 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; -- 2.30.2