summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-04-09 10:09:24 -0600
committerBrian Paul <[email protected]>2010-04-09 10:09:24 -0600
commit75b8c4a8f869f63991c774caa7e1cec7e988c5ec (patch)
tree141f8eb5754404818d6d46a4bb6cca0ecdd01494 /progs
parent4ae2bdcb150aa87557c8f1648445e84bfb926986 (diff)
parentb22a00bff4aadd390dd8af6b5b05bd2833ec7f85 (diff)
Merge branch '7.8'
Diffstat (limited to 'progs')
-rw-r--r--progs/tests/zreaddraw.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/progs/tests/zreaddraw.c b/progs/tests/zreaddraw.c
index 7740695bb66..4d27b3a505b 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);