Package: freeglut3 Version: 2.2.0-8.1 Severity: normal The call:
glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE,GLUT_ACTION_GLUTMAINLOOP_RETURNS); should stop freeglut issuing an "exit(0)" when the glut window is closed. It doesn't, because in freeglut_main.c line 1126 we have: fgDeinitialize( ); if( fgState.ActionOnWindowClose == GLUT_ACTION_EXIT ) exit( 0 ); and "fgDeinitialize()" resets "fgState.ActionOnWindowClose" back to "GLUT_ACTION_EXIT". Rewriting this as: { int aowc = fgState.ActionOnWindowClose; fgDeinitialize( ); if( aowc == GLUT_ACTION_EXIT ) exit( 0 ); } fixes it. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.9 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages freeglut3 depends on: ii freeglut3 [libglut3] 2.2.0-8.1 OpenGL Utility Toolkit ii libc6 2.3.5-3 GNU C Library: Shared libraries an ii libglut3 3.7-25 the OpenGL Utility Toolkit ii libx11-6 6.8.2.dfsg.1-4 X Window System protocol client li ii libxext6 6.8.2.dfsg.1-4 X Window System miscellaneous exte ii xlibmesa-gl [libgl1] 6.8.2.dfsg.1-4 Mesa 3D graphics library [X.Org] ii xlibmesa-glu [libglu1] 4.3.0.dfsg.1-14 Mesa OpenGL utility library [XFree ii xlibs 6.8.2.dfsg.1-4 X Window System client libraries m freeglut3 recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]