better debug output
authorBrian <brian.paul@tungstengraphics.com>
Wed, 24 Oct 2007 18:30:49 +0000 (12:30 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 24 Oct 2007 18:32:42 +0000 (12:32 -0600)
src/mesa/pipe/draw/draw_vertex_shader.c

index 24cbf20fc753727d117f818dc475cad216f52ea1..d8bd5a96d66b2451a6e3e3cfea7c4ff4b7e01177 100644 (file)
@@ -147,7 +147,11 @@ run_vertex_program(struct draw_context *draw,
       vOut[j]->data[0][3] = w;
 
 #if DBG
-      printf("output[%d]win: %f %f %f %f\n", x, y, z, w);
+      printf("output[%d]win: %f %f %f %f\n", j,
+             vOut[j]->data[0][0],
+             vOut[j]->data[0][1],
+             vOut[j]->data[0][2],
+             vOut[j]->data[0][3]);
 #endif
       /* Remaining attributes are packed into sequential post-transform
        * vertex attrib slots.