aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-10-01 16:43:22 -0600
committerBrian Paul <[email protected]>2009-10-01 16:43:22 -0600
commitbb659f6e53095d4eeef85a3d586721306a0c3e80 (patch)
tree988956cf85e745b4c45b2618510fe32e74a28190 /progs/tests
parent4ca9ba254462b9be55b78df1d50519e10b2f4d73 (diff)
progs/tests: additional debug code
Diffstat (limited to 'progs/tests')
-rw-r--r--progs/tests/packedpixels.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/progs/tests/packedpixels.c b/progs/tests/packedpixels.c
index 1703b271cb0..f4e5d0a7953 100644
--- a/progs/tests/packedpixels.c
+++ b/progs/tests/packedpixels.c
@@ -191,6 +191,16 @@ MakeTexture(const struct pixel_format *format, GLenum intFormat, GLboolean swap)
format->format, format->type, texBuffer);
}
+ if (0) {
+ GLint r, g, b, a;
+ glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_RED_SIZE, &r);
+ glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_GREEN_SIZE, &g);
+ glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_BLUE_SIZE, &b);
+ glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_ALPHA_SIZE, &a);
+ printf("sizes: %d %d %d %d\n", r, g, b, a);
+ glGetError();
+ }
+
if (glGetError()) {
printf("GL Error for %s\n", format->name);
memset(texBuffer, 255, 1000);