From 0647e9f98125009ed8710eb9a9f32793a9a8f0b2 Mon Sep 17 00:00:00 2001 From: Richard Rauch Date: Tue, 11 Nov 2003 11:20:01 +0000 Subject: [PATCH] Moved glutInit*() functions ahead of glutInit(). (This is proper use of glutInit() in general, since it allows the user to override settings via {argc, argv} command-line params.) git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@338 7f0cb862-5218-0410-a997-914c9d46530a --- progs/demos/One/one.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/progs/demos/One/one.c b/progs/demos/One/one.c index 20349df..7a714f4 100644 --- a/progs/demos/One/one.c +++ b/progs/demos/One/one.c @@ -250,12 +250,12 @@ int main( int argc, char** argv ) { int menuID, subMenuA, subMenuB; - glutInit( &argc, argv ); - glutInitDisplayString( "stencil~2 rgb double depth>=16 samples" ); glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH ); glutInitWindowPosition( 100, 100 ); + glutInit( &argc, argv ); + subMenuA = glutCreateMenu( SampleMenu ); glutAddMenuEntry( "Sub menu A1 (01)", 1 ); glutAddMenuEntry( "Sub menu A2 (02)", 2 ); -- 1.7.10.4