mesa: Make VBO dlist printing use the same path as other dlist printing.
authorEric Anholt <eric@anholt.net>
Fri, 19 Jun 2009 22:36:50 +0000 (15:36 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 19 Jun 2009 23:43:45 +0000 (16:43 -0700)
I was rather confused when mesa_print_display_list didn't show any of
my glBegin()..glEnd().  Nothing but print_list appears to call
this function, so matching its behavior seems like a good idea.

src/mesa/vbo/vbo_save_api.c

index 868226075ac224f2fb83efb7115c2eab27db8c8a..3c4c8acc63824d0cc5f0fbb9ed284dc95b417e13 100644 (file)
@@ -1139,21 +1139,21 @@ static void vbo_print_vertex_list( GLcontext *ctx, void *data )
    GLuint i;
    (void) ctx;
 
-   _mesa_debug(NULL, "VBO-VERTEX-LIST, %u vertices %d primitives, %d vertsize\n",
-               node->count,
-              node->prim_count,
-              node->vertex_size);
+   _mesa_printf("VBO-VERTEX-LIST, %u vertices %d primitives, %d vertsize\n",
+               node->count,
+               node->prim_count,
+               node->vertex_size);
 
    for (i = 0 ; i < node->prim_count ; i++) {
       struct _mesa_prim *prim = &node->prim[i];
-      _mesa_debug(NULL, "   prim %d: %s%s %d..%d %s %s\n",
-                 i, 
-                 _mesa_lookup_enum_by_nr(prim->mode),
-                 prim->weak ? " (weak)" : "",
-                 prim->start, 
-                 prim->start + prim->count,
-                 (prim->begin) ? "BEGIN" : "(wrap)",
-                 (prim->end) ? "END" : "(wrap)");
+      _mesa_printf("   prim %d: %s%s %d..%d %s %s\n",
+                  i,
+                  _mesa_lookup_enum_by_nr(prim->mode),
+                  prim->weak ? " (weak)" : "",
+                  prim->start,
+                  prim->start + prim->count,
+                  (prim->begin) ? "BEGIN" : "(wrap)",
+                  (prim->end) ? "END" : "(wrap)");
    }
 }