summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-08-28 14:20:19 +0000
committerBrian Paul <[email protected]>2006-08-28 14:20:19 +0000
commita394f546a4e053f5a85001783ab4a47942e8c640 (patch)
treecce7aa73fda3d90bfa93e628eb8ecdb87d6359ce
parent9cb82f7917b11288169146035700b992b86a7ec2 (diff)
check for GL_ARB_point_parameters
-rw-r--r--progs/demos/pointblast.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/demos/pointblast.c b/progs/demos/pointblast.c
index 715813f1763..dbbe2f35a28 100644
--- a/progs/demos/pointblast.c
+++ b/progs/demos/pointblast.c
@@ -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);