summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-10-23 14:52:10 -0600
committerBrian Paul <brianp@vmware.com>2009-10-23 14:52:10 -0600
commitb01937a3c967ed23315c7543f97228be06942b7d (patch)
tree1b90f5ae4b632bb218fd9fb7b970b33960736a29
parent96d7d66dff5b6dbca1ff6fe48e5449a8107d7781 (diff)
downloadexternal_mesa3d-b01937a3c967ed23315c7543f97228be06942b7d.zip
external_mesa3d-b01937a3c967ed23315c7543f97228be06942b7d.tar.gz
external_mesa3d-b01937a3c967ed23315c7543f97228be06942b7d.tar.bz2
progs/tests: print requested/internal format info
-rw-r--r--progs/tests/texcmp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/progs/tests/texcmp.c b/progs/tests/texcmp.c
index d1e829d..45935e1 100644
--- a/progs/tests/texcmp.c
+++ b/progs/tests/texcmp.c
@@ -149,7 +149,7 @@ static void Reshape( int width, int height )
static void ReInit( GLenum TC, TEXTURE *Tx )
{
- GLint rv;
+ GLint rv, v;
if ((Tx->TC == TC) && (Tx->cData != NULL)) {
glCompressedTexImage2DARB(GL_TEXTURE_2D, /* target */
@@ -170,6 +170,12 @@ static void ReInit( GLenum TC, TEXTURE *Tx )
GL_UNSIGNED_BYTE, /* texture type */
Tx->data); /* the texture */
+
+ v = 0;
+ glGetTexLevelParameteriv(GL_TEXTURE_2D, 0,
+ GL_TEXTURE_INTERNAL_FORMAT, &v);
+ printf("Requested internal format = 0x%x, actual = 0x%x\n", TC, v);
+
/* okay, now cache the compressed texture */
Tx->TC = TC;
if (Tx->cData != NULL) {