progs/tests: added test for GL_EXT_texture_compression_s3tc support
[mesa.git] / 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);