summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-05-06 09:45:24 -0600
committerBrian Paul <[email protected]>2009-05-07 10:12:32 -0600
commitad32489987f3f65d37aee76083f466d674ada0c5 (patch)
treee05c3b9aa48364bdf9dc222dd09dc39baac16903 /src/mesa/tnl
parent424507953ca9d41e0dbfcc0399f50315b5671776 (diff)
tnl: added some clip debug/print code (disabled)
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_vb_cliptmp.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vb_cliptmp.h b/src/mesa/tnl/t_vb_cliptmp.h
index e1643c27357..61b0a89554c 100644
--- a/src/mesa/tnl/t_vb_cliptmp.h
+++ b/src/mesa/tnl/t_vb_cliptmp.h
@@ -227,6 +227,25 @@ TAG(clip_tri)( GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLubyte mask )
}
}
+ if (0) {
+ /* print pre/post-clip vertex coords */
+ GLuint i, j;
+ _mesa_printf("pre clip\n");
+ for (i = 0; i < 3; i++) {
+ j = outlist[i];
+ _mesa_printf(" %u: %u: %f, %f, %f, %f\n",
+ i, j,
+ coord[j][0], coord[j][1], coord[j][2], coord[j][3]);
+ }
+ _mesa_printf("post clip\n");
+ for (i = 0; i < n; i++) {
+ j = inlist[i];
+ _mesa_printf(" %u: %u: %f, %f, %f, %f\n",
+ i, j,
+ coord[j][0], coord[j][1], coord[j][2], coord[j][3]);
+ }
+ }
+
tnl->Driver.Render.ClippedPolygon( ctx, inlist, n );
}