diff options
author | Chris Robinson <[email protected]> | 2011-07-02 02:56:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-02 02:56:06 -0700 |
commit | 4c94ba6d8a457c4d4c1dd3a9c7f08fe18b2f3ce4 (patch) | |
tree | bcdf0bf7a446398107d3a973551f8d444b3f71d9 /Alc/ALu.c | |
parent | 7b87519c15fbb5b07e20ccdce6da13777548eee1 (diff) |
Properly save the original FPU state when using _controlfp
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |