summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--progs/tests/texcompress2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/progs/tests/texcompress2.c b/progs/tests/texcompress2.c
index b95aca9fb9..33a675ac64 100644
--- a/progs/tests/texcompress2.c
+++ b/progs/tests/texcompress2.c
@@ -151,9 +151,14 @@ LoadCompressedImage(const char *file)
free(image);
+ glGetTexLevelParameteriv(Target, 0, GL_TEXTURE_COMPRESSED_ARB, &p);
+ if (p == GL_FALSE) {
+ printf("Failed to actually compress target\n");
+ }
+
glGetTexLevelParameteriv(Target, 0, GL_TEXTURE_INTERNAL_FORMAT, &p);
printf("Compressed Internal Format: %s (0x%x)\n", LookupFormat(p), p);
- assert(p == CompFormat);
+ CompFormat = p;
printf("Original size: %d bytes\n", ImgWidth * ImgHeight * 3);
glGetTexLevelParameteriv(Target, 0, GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB, &p);