mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
check for GL_ARB_point_parameters
This commit is contained in:
parent
9cb82f7917
commit
a394f546a4
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue