check for GL_ARB_point_parameters
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 28 Aug 2006 14:20:19 +0000 (14:20 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 28 Aug 2006 14:20:19 +0000 (14:20 +0000)
progs/demos/pointblast.c

index 715813f1763ed539ff95fd6372b4c5ec32d48e9c..dbbe2f35a28f80c9ee0fbff4e60a5e01def4ed81 100644 (file)
@@ -471,6 +471,11 @@ main(int argc, char **argv)
   glutAddMenuEntry("Quit", 666);
   glutAttachMenu(GLUT_RIGHT_BUTTON);
 
+  if (!glutExtensionSupported("GL_ARB_point_parameters")) {
+    fprintf(stderr, "Sorry, GL_ARB_point_parameters is not supported.\n");
+    return -1;
+  }
+
   glShadeModel(GL_FLAT);
   glEnable(GL_DEPTH_TEST);
   glEnable(GL_POINT_SMOOTH);