aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-12-20 00:35:32 -0800
committerChris Robinson <[email protected]>2011-12-20 00:35:32 -0800
commita5a929ff723b06d9ff1cdd04aa064e8932bce473 (patch)
tree2d1b4b99e216a922b1c9f66f3561a9412e8f1ef2 /Alc
parent84b5311257cbd7b6f50c9b16bada58216b911547 (diff)
Restore the old FPU mode if the effects fail to update with new device parameters
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 7a53a6cb..93688d5c 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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;