Bug#336840: space-orbit: doesn't start

2005-12-13 Thread John Lightsey
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.0 -0600
+++ space-orbit-1.01/src/orbit.c	2005-12-13 18:22:22.0 -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);


Bug#336840: space-orbit: doesn't start

2005-11-01 Thread Juergen Richtsfeld
Package: space-orbit
Version: 1.01-6
Severity: grave
Justification: renders package unusable

after calling 'orbit' i get:
freeglut  ERROR:  Function glutBitmapLength called without first calling 
'glutInit'.


no more output.

hth,
juergen

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-10-1
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages space-orbit depends on:
ii  freeglut32.4.0-2 OpenGL Utility Toolkit
ii  libc62.3.5-7 GNU C Library: Shared libraries an
ii  libesd0  0.2.36-1Enlightened Sound Daemon - Shared 
ii  libglu1-xorg [libglu1]   6.8.2.dfsg.1-9  Mesa OpenGL utility library [X.Org
ii  libx11-6 6.8.2.dfsg.1-9  X Window System protocol client li
ii  libxext6 6.8.2.dfsg.1-9  X Window System miscellaneous exte
ii  libxi6   6.8.2.dfsg.1-9  X Window System Input extension li
ii  libxmu6  6.8.2.dfsg.1-9  X Window System miscellaneous util
ii  libxt6   6.8.2.dfsg.1-9  X Toolkit Intrinsics
ii  space-orbit-common   1.01-6  common files for space-orbit
ii  xlibmesa-gl [libgl1] 6.8.2.dfsg.1-9  Mesa 3D graphics library [X.Org]
ii  xlibs6.8.2.dfsg.1-10 X Window System client libraries m

space-orbit recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]