diff options
author | Chris Robinson <[email protected]> | 2008-01-14 10:42:11 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-01-14 10:42:11 -0800 |
commit | a552e32a9aa878c342582b2b10eecb29eaa00582 (patch) | |
tree | 44191afbcc411731781f339b84b93ce1d7241b2b /Alc/ALc.c | |
parent | 29c6238b52e0733f7fbd19853f323ea9ee245064 (diff) |
Destroy context if closing a device with one
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1224,6 +1224,8 @@ ALCAPI ALCboolean ALCAPIENTRY alcCloseDevice(ALCdevice *pDevice) ProcessContext(NULL); + if(pDevice->Context) + alcDestroyContext(pDevice->Context); ALCdevice_ClosePlayback(pDevice); //Release device structure |