Module: Mesa Branch: master Commit: ffedd28c9c9f218efb989deb38451c3bfc0b1e0f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffedd28c9c9f218efb989deb38451c3bfc0b1e0f
Author: Brian Paul <[email protected]> Date: Thu Apr 8 13:09:01 2010 -0600 progs/tests: added some debug code (disabled) --- progs/tests/zreaddraw.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/progs/tests/zreaddraw.c b/progs/tests/zreaddraw.c index 7740695..4d27b3a 100644 --- a/progs/tests/zreaddraw.c +++ b/progs/tests/zreaddraw.c @@ -102,6 +102,19 @@ static void Display(void) /* read back scaled depth image */ glReadPixels(100, 0, 400, 400, GL_DEPTH_COMPONENT, GL_FLOAT, depth2); + + /* debug */ + if (0) { + int i; + float *z = depth2 + 400 * 200; + printf("z at y=200:\n"); + for (i = 0; i < 400; i++) { + printf("%5.3f ", z[i]); + if ((i + 1) % 12 == 0) + printf("\n"); + } + } + /* draw as luminance */ glPixelZoom(1.0, 1.0); glWindowPos2i(100, 0); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
