progs/tests: added test for GL_EXT_texture_compression_s3tc support
authorBrian Paul <brianp@vmware.com>
Sat, 10 Oct 2009 17:52:38 +0000 (11:52 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 29 Oct 2009 03:50:51 +0000 (21:50 -0600)
progs/tests/mipmap_comp.c

index 5842e2b8805301fa3cfdc83a15cf599caec78534..dd2232113b671c1314c6ed1e3ab598daa38de558 100644 (file)
@@ -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);