projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bab6c0a
)
progs/tests: added some debug code (disabled)
author
Brian Paul
<brianp@vmware.com>
Thu, 8 Apr 2010 19:09:01 +0000
(13:09 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 8 Apr 2010 19:11:29 +0000
(13:11 -0600)
progs/tests/zreaddraw.c
patch
|
blob
|
history
diff --git
a/progs/tests/zreaddraw.c
b/progs/tests/zreaddraw.c
index 7740695bb669914fccca6a806e5873cc88c58947..4d27b3a505be1f4de6e88a6c104f0f35f9244f03 100644
(file)
--- 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);