fptest1 requires GL_NV_fragment_program
authorTilman Sauerbeck <tilman@freedesktop.org>
Fri, 28 Apr 2006 21:50:41 +0000 (21:50 +0000)
committerTilman Sauerbeck <tilman@freedesktop.org>
Fri, 28 Apr 2006 21:50:41 +0000 (21:50 +0000)
progs/tests/fptest1.c

index d0bcdaa226de1f9f6fb51ba9542f01e58ada9854..095190a8aefa709cc54a9873cc19028b15ce5ac4 100644 (file)
@@ -149,6 +149,11 @@ static void Init( void )
 
    GLuint progs[20];
 
+   if (!glutExtensionSupported ("GL_NV_fragment_program")) {
+          printf("Sorry, this program requires GL_NV_fragment_program\n");
+          exit(1);
+   }
+
    glGenProgramsNV(20, progs);
    assert(progs[0]);
    assert(progs[1]);