Properly save the original FPU state when using _controlfp

This commit is contained in:
Chris Robinson 2011-07-02 02:56:06 -07:00
parent 7b87519c15
commit 4c94ba6d8a

View File

@ -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