summaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-05-18 20:17:31 -0700
committerChris Robinson <[email protected]>2008-05-18 20:17:31 -0700
commitca6feeda2900acc4ea9b160402e4d4f10c92c8f5 (patch)
tree5e5e757256d2e831d3e728e1be5528ef756a679e /Alc/ALc.c
parentcecf778de3170900a44db4aab9a2ca405c98f3ef (diff)
Make sure the lib is initialized when shutting down
Pretty ugly, but the destructor sequence relies in the mutex being initialized
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c2
1 files changed, 2 insertions, 0 deletions
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);