aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-09-16 06:01:48 -0700
committerChris Robinson <[email protected]>2012-09-16 06:01:48 -0700
commit95535ce99eb7b0664fff4172764c4272fd3ddd15 (patch)
tree50179ca2c45b6a7a0f493e07e8e3547ec3e05129 /Alc/helpers.c
parentdf2e82da78a70a8929ed4bd065515eab7d1db336 (diff)
Properly restore the SSE control word with __control87_2
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index d074c52b..53f4016f 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -227,7 +227,7 @@ void RestoreFPUMode(const FPUCtl *ctl)
__control87_2(ctl->state, _MCW_RC|_MCW_PC, &mode, NULL);
#ifdef HAVE_SSE
if((CPUCapFlags&CPU_CAP_SSE))
- __control87_2(ctl->sse_state, _MCW_DN, NULL, &mode);
+ __control87_2(ctl->sse_state, _MCW_RC|_MCW_PC|_MCW_DN, NULL, &mode);
#endif
#elif defined(HAVE__CONTROLFP)
_controlfp(ctl->state, _MCW_RC|_MCW_PC);