Set the mixer FPU mode when setting a new effect on an effect slot

This commit is contained in:
Chris Robinson
2011-09-29 05:25:01 -07:00
parent 1b81642db5
commit 3c27c24dec
+5
View File
@@ -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;
}