diff options
author | Chris Robinson <[email protected]> | 2011-09-29 05:25:01 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-29 05:25:01 -0700 |
commit | 3c27c24dec5cc6830a53b098d8e94cb3d28b4aeb (patch) | |
tree | b0596019394465cead9bcd575d6423cc900d0a39 | |
parent | 1b81642db586a1d15fbff5fce4d6534d727fcd3d (diff) |
Set the mixer FPU mode when setting a new effect on an effect slot
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 42dd20cb..c8a12d33 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -560,6 +560,9 @@ static ALvoid InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, AL if(State) { + int oldMode; + oldMode = SetMixerFPUMode(); + if(ALeffectState_DeviceUpdate(State, Context->Device) == AL_FALSE) { UnlockContext(Context); @@ -580,6 +583,8 @@ static ALvoid InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, AL ALeffectState_Update(EffectSlot->EffectState, Context, EffectSlot); UnlockContext(Context); + RestoreFPUMode(oldMode); + ALeffectState_Destroy(State); State = NULL; } |