diff options
author | Chris Robinson <[email protected]> | 2008-05-18 20:17:31 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-05-18 20:17:31 -0700 |
commit | ca6feeda2900acc4ea9b160402e4d4f10c92c8f5 (patch) | |
tree | 5e5e757256d2e831d3e728e1be5528ef756a679e | |
parent | cecf778de3170900a44db4aab9a2ca405c98f3ef (diff) |
Make sure the lib is initialized when shutting down
Pretty ugly, but the destructor sequence relies in the mutex being initialized
-rw-r--r-- | Alc/ALc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |