diff options
author | Chris Robinson <[email protected]> | 2008-07-22 14:29:27 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-07-22 14:29:27 -0700 |
commit | 93c0f61050dbe15e692e567a208bd0c60d60b4dd (patch) | |
tree | 954feceb29f33dc5b135810c2a5f3a1b6e810c85 /Alc/ALc.c | |
parent | 3a8c543f8bb814216fd3f68e4116e63b6d46215f (diff) |
Clarify implicit destruction warnings
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1279,7 +1279,12 @@ ALCAPI ALCboolean ALCAPIENTRY alcCloseDevice(ALCdevice *pDevice) ProcessContext(NULL); if(pDevice->Context) + { +#ifdef _DEBUG + AL_PRINT("alcCloseDevice(): destroying 1 Context\n"); +#endif alcDestroyContext(pDevice->Context); + } ALCdevice_ClosePlayback(pDevice); //Release device structure @@ -1298,8 +1303,8 @@ ALCAPI ALCboolean ALCAPIENTRY alcCloseDevice(ALCdevice *pDevice) ALCvoid ReleaseALC(ALCvoid) { #ifdef _DEBUG - if(g_ulContextCount > 0) - AL_PRINT("exit() %u device(s) and %u context(s) NOT deleted\n", g_ulDeviceCount, g_ulContextCount); + if(g_ulDeviceCount > 0) + AL_PRINT("exit(): closing %u Device%s\n", g_ulDeviceCount, (g_ulDeviceCount>1)?"s":""); #endif while(g_pDeviceList) |