diff options
author | Roland Scheidegger <[email protected]> | 2006-08-28 21:19:34 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2006-08-28 21:19:34 +0000 |
commit | af1dc7e487615361fd906cdbb917d4abf62b61dc (patch) | |
tree | b080c7f013ebe7d2c577b016c4cb887e499bcd8e /progs | |
parent | b5a2fc125516f46fade82a8c65527ffe77cab5c2 (diff) |
move initialization code aroudn so glPointParameter isn't called before checking the extension is present
Diffstat (limited to 'progs')
-rw-r--r-- | progs/demos/spriteblast.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/demos/spriteblast.c b/progs/demos/spriteblast.c index d6e9a4de2fd..f0d3d0dfd41 100644 --- a/progs/demos/spriteblast.c +++ b/progs/demos/spriteblast.c @@ -537,6 +537,9 @@ main(int argc, char **argv) glutAddMenuEntry("Quit", 666); glutAttachMenu(GLUT_RIGHT_BUTTON); + makePointList(); + makeSprite(); + glShadeModel(GL_FLAT); glEnable(GL_DEPTH_TEST); glEnable(GL_POINT_SMOOTH); @@ -546,9 +549,6 @@ main(int argc, char **argv) glPointParameterfvARB(GL_POINT_DISTANCE_ATTENUATION_ARB, theQuad); #endif - makePointList(); - makeSprite(); - glutMainLoop(); return 0; /* ANSI C requires main to return int. */ } |