From a394f546a4e053f5a85001783ab4a47942e8c640 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 28 Aug 2006 14:20:19 +0000 Subject: check for GL_ARB_point_parameters --- progs/demos/pointblast.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'progs/demos') diff --git a/progs/demos/pointblast.c b/progs/demos/pointblast.c index 715813f176..dbbe2f35a2 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); -- cgit v1.2.3