diff options
Diffstat (limited to 'progs/tests/texcmp.c')
-rw-r--r-- | progs/tests/texcmp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/progs/tests/texcmp.c b/progs/tests/texcmp.c index ebb537272f6..3f2cee6e46d 100644 --- a/progs/tests/texcmp.c +++ b/progs/tests/texcmp.c @@ -154,7 +154,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 */ @@ -175,6 +175,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) { |