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); device = alcGetContextsDevice(currentContext);
//Release context //Release context
CDLOGINFO(@"Denshion::CDSoundEngine - destroy context."); CDLOGINFO(@"Denshion::CDSoundEngine - destroy context.");
alcMakeContextCurrent(NULL);
alcDestroyContext(currentContext); alcDestroyContext(currentContext);
//Close device //Close device
CDLOGINFO(@"Denshion::CDSoundEngine - close device."); CDLOGINFO(@"Denshion::CDSoundEngine - close device.");

View File

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