From 0b63adc263e35388e64a5e83227aafc16a5dbace Mon Sep 17 00:00:00 2001 From: Corbin Simpson Date: Mon, 29 Mar 2010 20:59:30 -0700 Subject: progs/tests/texcompress2: It's legal for compression to fail. --- progs/tests/texcompress2.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3