From 657ee85136861c9da105a67050ae84a85ecfe808 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 16 Sep 2012 01:35:16 -0700 Subject: Use a struct to store the FPU mode --- OpenAL32/alState.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenAL32/alState.c') diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index 359885c5..678e9e94 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -597,9 +597,9 @@ AL_API ALvoid AL_APIENTRY alDeferUpdatesSOFT(void) ALboolean UpdateSources; ALsource **src, **src_end; ALeffectslot **slot, **slot_end; - int fpuState; + FPUCtl oldMode; - fpuState = SetMixerFPUMode(); + SetMixerFPUMode(&oldMode); LockContext(Context); Context->DeferUpdates = AL_TRUE; @@ -634,7 +634,7 @@ AL_API ALvoid AL_APIENTRY alDeferUpdatesSOFT(void) } UnlockContext(Context); - RestoreFPUMode(fpuState); + RestoreFPUMode(&oldMode); } ALCcontext_DecRef(Context); -- cgit v1.2.3