projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb82f7
)
check for GL_ARB_point_parameters
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 28 Aug 2006 14:20:19 +0000
(14:20 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 28 Aug 2006 14:20:19 +0000
(14:20 +0000)
progs/demos/pointblast.c
patch
|
blob
|
history
diff --git
a/progs/demos/pointblast.c
b/progs/demos/pointblast.c
index 715813f1763ed539ff95fd6372b4c5ec32d48e9c..dbbe2f35a28f80c9ee0fbff4e60a5e01def4ed81 100644
(file)
--- 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);