From 1b81642db586a1d15fbff5fce4d6534d727fcd3d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 29 Sep 2011 05:15:20 -0700 Subject: Set the mixer FPU mode for device parameter updates --- Alc/ALc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Alc/ALc.c') diff --git a/Alc/ALc.c b/Alc/ALc.c index e7872d00..3a24f5e9 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1020,6 +1020,7 @@ static void alcSetError(ALCdevice *device, ALCenum errorCode) static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) { ALCcontext *context; + int oldMode; ALuint i; // Check for attributes @@ -1196,6 +1197,7 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) } TRACE("Stereo duplication %s\n", (device->Flags&DEVICE_DUPLICATE_STEREO)?"enabled":"disabled"); + oldMode = SetMixerFPUMode(); context = device->ContextList; while(context) { @@ -1241,6 +1243,7 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) context = context->next; } + RestoreFPUMode(oldMode); UnlockDevice(device); return ALC_TRUE; -- cgit v1.2.3