Module: Mesa
Branch: master
Commit: 9a3333f43600ed4b9a17e49f79004f0c8d289378
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a3333f43600ed4b9a17e49f79004f0c8d289378

Author: Brian Paul <[email protected]>
Date:   Mon Sep 21 16:51:34 2009 -0600

vbo: restore some lost warning output

---

 src/mesa/vbo/vbo_exec_array.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
index 7eca7f5..ee37eeb 100644
--- a/src/mesa/vbo/vbo_exec_array.c
+++ b/src/mesa/vbo/vbo_exec_array.c
@@ -681,11 +681,11 @@ vbo_exec_DrawRangeElementsBaseVertex(GLenum mode,
    if (end >= ctx->Array.ArrayObj->_MaxElement) {
       /* 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, indices=%p)\n"
+                    "type 0x%x, indices %p, base %d)\n"
                     "\tend is out of bounds (max=%u)  "
                     "Element Buffer %u (size %d)\n"
                     "\tThis should probably be fixed in the application.",
-                    start, end, count, type, indices,
+                    start, end, count, type, indices, basevertex,
                     ctx->Array.ArrayObj->_MaxElement - 1,
                     ctx->Array.ElementArrayBufferObj->Name,
                     ctx->Array.ElementArrayBufferObj->Size);
@@ -706,11 +706,12 @@ vbo_exec_DrawRangeElementsBaseVertex(GLenum mode,
                                              ctx->Array.ElementArrayBufferObj);
          if (max >= ctx->Array.ArrayObj->_MaxElement) {
             _mesa_warning(ctx, "glDraw[Range]Elements(start %u, end %u, "
-                          "count %d, type 0x%x, indices=%p)\n"
+                          "count %d, type 0x%x, indices %p, base %p)\n"
                           "\tindex=%u is out of bounds (max=%u)  "
                           "Element Buffer %u (size %d)\n"
                           "\tSkipping the glDrawRangeElements() call",
-                          start, end, count, type, indices, max,
+                          start, end, count, type, indices, basevertex,
+                          max,
                           ctx->Array.ArrayObj->_MaxElement - 1,
                           ctx->Array.ElementArrayBufferObj->Name,
                           ctx->Array.ElementArrayBufferObj->Size);

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to