progs/tests: additional debug code
authorBrian Paul <brianp@vmware.com>
Thu, 1 Oct 2009 22:43:22 +0000 (16:43 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 1 Oct 2009 22:43:22 +0000 (16:43 -0600)
progs/tests/packedpixels.c

index 1703b271cb03011f40ff27ce072160cea78e1953..f4e5d0a795378b97e53b99ac57c10b47f729fa5f 100644 (file)
@@ -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);