diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2010-03-29 20:59:30 -0700 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2010-03-31 18:55:23 -0700 |
commit | 0b63adc263e35388e64a5e83227aafc16a5dbace (patch) | |
tree | 56f1a791052c6f853f73f52333329b1a9872ea53 | |
parent | e83728f7ee6db6e91bdfb0c91f046f56d89cffc0 (diff) |
progs/tests/texcompress2: It's legal for compression to fail.s3tc-by-the-book
-rw-r--r-- | progs/tests/texcompress2.c | 7 |
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); |