diff options
author | Chris Robinson <[email protected]> | 2012-09-16 01:35:16 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-16 01:35:16 -0700 |
commit | 657ee85136861c9da105a67050ae84a85ecfe808 (patch) | |
tree | 09c60903ae761af302703315761355513c1c168c /OpenAL32/alState.c | |
parent | 965306b296d6599d8562c713c18a01b8766eafee (diff) |
Use a struct to store the FPU mode
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r-- | OpenAL32/alState.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |