summaryrefslogtreecommitdiff
path: root/progs/tests
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-10-10 11:52:38 -0600
committerBrian Paul <brianp@vmware.com>2009-10-28 21:50:51 -0600
commit635ea8737488cc2fdcf0fcacb4ca39c8bc3b028a (patch)
tree9377a0f768295bd034dfa755f0d91f07aaf60465 /progs/tests
parent96128fdf2f959e2b59eca8f234dc6f3adf7a553f (diff)
progs/tests: added test for GL_EXT_texture_compression_s3tc support
Diffstat (limited to 'progs/tests')
-rw-r--r--progs/tests/mipmap_comp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/tests/mipmap_comp.c b/progs/tests/mipmap_comp.c
index 5842e2b880..dd2232113b 100644
--- a/progs/tests/mipmap_comp.c
+++ b/progs/tests/mipmap_comp.c
@@ -285,6 +285,12 @@ main(int argc, char** argv)
glutInitWindowSize (600, 600);
glutCreateWindow (argv[0]);
glewInit();
+
+ if (!glutExtensionSupported("GL_EXT_texture_compression_s3tc")) {
+ fprintf(stderr, "This test requires GL_EXT_texture_compression_s3tc.\n");
+ exit(1);
+ }
+
myInit();
glutReshapeFunc (myReshape);
glutDisplayFunc(display);