From 3c27c24dec5cc6830a53b098d8e94cb3d28b4aeb Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 29 Sep 2011 05:25:01 -0700 Subject: Set the mixer FPU mode when setting a new effect on an effect slot --- OpenAL32/alAuxEffectSlot.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenAL32/alAuxEffectSlot.c') 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; } -- cgit v1.2.3