Make sure the lib is initialized when shutting down

Pretty ugly, but the destructor sequence relies in the mutex being initialized
This commit is contained in:
Chris Robinson 2008-05-18 20:17:31 -07:00
parent cecf778de3
commit ca6feeda29

View File

@ -1248,6 +1248,8 @@ ALCAPI ALCboolean ALCAPIENTRY alcCloseDevice(ALCdevice *pDevice)
ALCvoid ReleaseALC(ALCvoid)
{
InitAL();
#ifdef _DEBUG
if(g_ulContextCount > 0)
AL_PRINT("exit() %u device(s) and %u context(s) NOT deleted\n", g_ulDeviceCount, g_ulContextCount);