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 /Alc/ALu.c | |
parent | 965306b296d6599d8562c713c18a01b8766eafee (diff) |
Use a struct to store the FPU mode
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -905,10 +905,10 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) ALeffectslot **slot, **slot_end; ALsource **src, **src_end; ALCcontext *ctx; - int fpuState; + FPUCtl oldMode; ALuint i, c; - fpuState = SetMixerFPUMode(); + SetMixerFPUMode(&oldMode); while(size > 0) { @@ -1082,7 +1082,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) size -= SamplesToDo; } - RestoreFPUMode(fpuState); + RestoreFPUMode(&oldMode); } |