mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 02:20:11 +01:00
progs/tests: added some debug code (disabled)
This commit is contained in:
parent
bab6c0a035
commit
ffedd28c9c
1 changed files with 13 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue