X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_init.c;h=5b5771b7c8f1e66a359325f2da2c827bc01c0754;hb=34f0aa01c95a8e6843069d5b9e4b2e7a7bbe1e53;hp=f59a456cd024d1aa1aa5357f1222d124ee046fe1;hpb=e0993afac48b6041646a7d8c8e3124275e2853f7;p=freeglut diff --git a/src/freeglut_init.c b/src/freeglut_init.c index f59a456..5b5771b 100644 --- a/src/freeglut_init.c +++ b/src/freeglut_init.c @@ -392,7 +392,10 @@ static void fghInitialize( const char* displayName ) 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. */ + * violation due to calling into a module which has been unloaded. + * Any cleanup isn't needed on Windows anyway, the OS takes care of it.c + * see: http://blogs.msdn.com/b/oldnewthing/archive/2012/01/05/10253268.aspx + */ #if ( TARGET_HOST_MS_WINDOWS == 0 ) atexit(fgDeinitialize); #endif