mirror of https://github.com/axmolengine/axmol.git
openal context not destroy correctly on mac and ios
This commit is contained in:
parent
aa33519a94
commit
2822066a5f
|
@ -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.");
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue