From ca6feeda2900acc4ea9b160402e4d4f10c92c8f5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 18 May 2008 20:17:31 -0700 Subject: Make sure the lib is initialized when shutting down Pretty ugly, but the destructor sequence relies in the mutex being initialized --- Alc/ALc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Alc') diff --git a/Alc/ALc.c b/Alc/ALc.c index 2e3d2adf..cb4c2ce3 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -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); -- cgit v1.2.3