Removing the "atexit ( fgDeinitialize )" call from the Windows code per e-mail trail culminating in a message from Martin Payne dated 12/17/11 at 4:43 AM

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@956 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
fayjf 2011-12-17 13:19:25 +00:00
parent 681299bdf1
commit a705abd462

View File

@ -390,7 +390,12 @@ static void fghInitialize( const char* displayName )
#endif #endif
fgState.Initialised = GL_TRUE; fgState.Initialised = GL_TRUE;
/* Avoid registering atexit callback on Win32 as it results in an access
* violation due to calling into a module which has been unloaded. */
#ifndef TARGET_HOST_MS_WINDOWS
atexit(fgDeinitialize); atexit(fgDeinitialize);
#endif
/* InputDevice uses GlutTimerFunc(), so fgState.Initialised must be TRUE */ /* InputDevice uses GlutTimerFunc(), so fgState.Initialised must be TRUE */
fgInitialiseInputDevices(); fgInitialiseInputDevices();