diff options
author | Chris Robinson <[email protected]> | 2011-12-20 00:35:32 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-12-20 00:35:32 -0800 |
commit | a5a929ff723b06d9ff1cdd04aa064e8932bce473 (patch) | |
tree | 2d1b4b99e216a922b1c9f66f3561a9412e8f1ef2 /Alc/ALc.c | |
parent | 84b5311257cbd7b6f50c9b16bada58216b911547 (diff) |
Restore the old FPU mode if the effects fail to update with new device parameters
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1209,6 +1209,7 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) if(ALeffectState_DeviceUpdate(slot->EffectState, device) == AL_FALSE) { UnlockUIntMapRead(&context->EffectSlotMap); + RestoreFPUMode(oldMode); UnlockDevice(device); ALCdevice_StopPlayback(device); device->Flags &= ~DEVICE_RUNNING; |