Set the mixer FPU mode when setting a new effect on an effect slot
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user