summaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-02 02:56:06 -0700
committerChris Robinson <[email protected]>2011-07-02 02:56:06 -0700
commit4c94ba6d8a457c4d4c1dd3a9c7f08fe18b2f3ce4 (patch)
treebcdf0bf7a446398107d3a973551f8d444b3f71d9 /Alc/ALu.c
parent7b87519c15fbb5b07e20ccdce6da13777548eee1 (diff)
Properly save the original FPU state when using _controlfp
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 7cddb5a8..2e3f81d2 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -954,7 +954,8 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
fpuState = fegetround();
fesetround(FE_TOWARDZERO);
#elif defined(HAVE__CONTROLFP)
- fpuState = _controlfp(_RC_CHOP, _MCW_RC);
+ fpuState = _controlfp(0, 0);
+ (void)_controlfp(_RC_CHOP, _MCW_RC);
#else
(void)fpuState;
#endif