st/xorg: Work around cursor reference counting bugs in older X servers.
[mesa.git] / progs / tests / vpeval.c
index 3e8a732df59be2196d86201b28a39e153fc07ec7..a4024b5336b2e86db20ed3c376645aafab113148 100644 (file)
@@ -145,6 +145,11 @@ myinit(int argc, char *argv[])
 
     printf("Using vertex program attribs? %s\n", program ? "yes" : "no");
 
+    if (program && !glutExtensionSupported("GL_NV_vertex_program")) {
+       printf("Sorry, this requires GL_NV_vertex_program\n");
+       exit(1);
+    }
+
     if (!program) {
         glMap2f(GL_MAP2_VERTEX_4,
                 0.0, 1.0, 4, 4,