openal context not destroy correctly on mac and ios

This commit is contained in:
zarelaky 2013-12-30 08:37:36 +08:00
parent aa33519a94
commit 2822066a5f
2 changed files with 2 additions and 0 deletions

View File

@ -258,6 +258,7 @@ static BOOL _mixerRateSet = NO;
device = alcGetContextsDevice(currentContext);
//Release context
CDLOGINFO(@"Denshion::CDSoundEngine - destroy context.");
alcMakeContextCurrent(NULL);
alcDestroyContext(currentContext);
//Close device
CDLOGINFO(@"Denshion::CDSoundEngine - close device.");

View File

@ -259,6 +259,7 @@ static BOOL _mixerRateSet = NO;
device = alcGetContextsDevice(currentContext);
//Release context
CDLOGINFO(@"Denshion::CDSoundEngine - destroy context.");
alcMakeContextCurrent(NULL);
alcDestroyContext(currentContext);
//Close device
CDLOGINFO(@"Denshion::CDSoundEngine - close device.");