summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-08-10 15:30:41 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-08-10 15:30:41 +0000
commitdfbb84ea2c0d1ddcc563ca3ec61b6a50ec68479a (patch)
treec14452e04b32240a398c06f0f3e68dd38123839f /src
parentcec85c778f66c60452ab83c16a4cb18121ecec0f (diff)
added some handy debug code (disabled)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/tnl/t_vb_vertex.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vb_vertex.c b/src/mesa/tnl/t_vb_vertex.c
index 52a8e05133..3951439fff 100644
--- a/src/mesa/tnl/t_vb_vertex.c
+++ b/src/mesa/tnl/t_vb_vertex.c
@@ -148,6 +148,18 @@ static GLboolean run_vertex_stage( GLcontext *ctx,
VB->EyePtr = TransformRaw( &store->eye,
ctx->ModelviewMatrixStack.Top,
VB->ObjPtr);
+#if 0
+ /* examine some eye coordinates */
+ {
+ GLuint i;
+ GLfloat *v = VB->EyePtr->start;
+ for (i = 0; i < 4; i++) {
+ _mesa_printf("eye[%d] = %g, %g, %g, %g\n",
+ i, v[0], v[1], v[2], v[3]);
+ v += 4;
+ }
+ }
+#endif
}
VB->ClipPtr = TransformRaw( &store->clip,
@@ -169,6 +181,19 @@ static GLboolean run_vertex_stage( GLcontext *ctx,
break;
}
+#if 0
+ /* examine some clip coordinates */
+ {
+ GLuint i;
+ GLfloat *v = VB->ClipPtr->start;
+ for (i = 0; i < 4; i++) {
+ _mesa_printf("clip[%d] = %g, %g, %g, %g\n",
+ i, v[0], v[1], v[2], v[3]);
+ v += 4;
+ }
+ }
+#endif
+
/* Cliptest and perspective divide. Clip functions must clear
* the clipmask.
*/