move initialization code aroudn so glPointParameter isn't called before checking the extension is present
This commit is contained in:
@@ -537,6 +537,9 @@ main(int argc, char **argv)
|
|||||||
glutAddMenuEntry("Quit", 666);
|
glutAddMenuEntry("Quit", 666);
|
||||||
glutAttachMenu(GLUT_RIGHT_BUTTON);
|
glutAttachMenu(GLUT_RIGHT_BUTTON);
|
||||||
|
|
||||||
|
makePointList();
|
||||||
|
makeSprite();
|
||||||
|
|
||||||
glShadeModel(GL_FLAT);
|
glShadeModel(GL_FLAT);
|
||||||
glEnable(GL_DEPTH_TEST);
|
glEnable(GL_DEPTH_TEST);
|
||||||
glEnable(GL_POINT_SMOOTH);
|
glEnable(GL_POINT_SMOOTH);
|
||||||
@@ -546,9 +549,6 @@ main(int argc, char **argv)
|
|||||||
glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, theQuad);
|
glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, theQuad);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
makePointList();
|
|
||||||
makeSprite();
|
|
||||||
|
|
||||||
glutMainLoop();
|
glutMainLoop();
|
||||||
return 0; /* ANSI C requires main to return int. */
|
return 0; /* ANSI C requires main to return int. */
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user