From a5a929ff723b06d9ff1cdd04aa064e8932bce473 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 20 Dec 2011 00:35:32 -0800 Subject: [PATCH] Restore the old FPU mode if the effects fail to update with new device parameters --- Alc/ALc.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.11.4.GIT