tags 336840 + patch
thanks

Reordering the call to glutInit in orbit.c fixes this error.

John
diff -ur space-orbit-1.01.orig/src/orbit.c space-orbit-1.01/src/orbit.c
--- space-orbit-1.01.orig/src/orbit.c	2005-12-13 18:22:35.000000000 -0600
+++ space-orbit-1.01/src/orbit.c	2005-12-13 18:22:22.000000000 -0600
@@ -41,6 +41,9 @@
 	/* Set up the player viewpoint, etc */
 	InitPlayer();
 
+	/* glutInit is required for InitStuff() */
+	glutInit(&argc, argv);
+	
 	/* Initialize all sorts of other stuff */
 	InitStuff();
 
@@ -63,8 +66,10 @@
  */
 {
 	char *p;
-
-	glutInit (&argc, argv);
+	
+	/* This is being called in main() now */
+	/* glutInit (&argc, argv); */
+	
 	glutInitDisplayMode (GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH);
 
 	glutInitWindowPosition (0, 0);

Reply via email to