aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alAuxEffectSlot.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-09-16 01:35:16 -0700
committerChris Robinson <[email protected]>2012-09-16 01:35:16 -0700
commit657ee85136861c9da105a67050ae84a85ecfe808 (patch)
tree09c60903ae761af302703315761355513c1c168c /OpenAL32/alAuxEffectSlot.c
parent965306b296d6599d8562c713c18a01b8766eafee (diff)
Use a struct to store the FPU mode
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r--OpenAL32/alAuxEffectSlot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index 048248aa..e3a626a1 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -528,12 +528,12 @@ ALenum InitializeEffect(ALCdevice *Device, ALeffectslot *EffectSlot, ALeffect *e
if(State)
{
- int oldMode;
- oldMode = SetMixerFPUMode();
+ FPUCtl oldMode;
+ SetMixerFPUMode(&oldMode);
if(ALeffectState_DeviceUpdate(State, Device) == AL_FALSE)
{
- RestoreFPUMode(oldMode);
+ RestoreFPUMode(&oldMode);
ALCdevice_Unlock(Device);
ALeffectState_Destroy(State);
return AL_OUT_OF_MEMORY;
@@ -551,7 +551,7 @@ ALenum InitializeEffect(ALCdevice *Device, ALeffectslot *EffectSlot, ALeffect *e
ALeffectState_Update(EffectSlot->EffectState, Device, EffectSlot);
ALCdevice_Unlock(Device);
- RestoreFPUMode(oldMode);
+ RestoreFPUMode(&oldMode);
ALeffectState_Destroy(State);
State = NULL;