rbug: fix breakage due to interface changes
[mesa.git] / progs / tests / mipmap_comp.c
index 5842e2b8805301fa3cfdc83a15cf599caec78534..122d157949a86dd5a79e3fb14e431e47c6c874a3 100644 (file)
@@ -48,8 +48,6 @@
 #include <GL/glew.h>
 #include <GL/glut.h>
 
-#include "readtex.h"
-
 #define SIZE 16 /* not larger then 16 */
 
 static GLint BaseLevel = 0, MaxLevel = 9;
@@ -285,6 +283,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);