diff options
author | Chris Robinson <[email protected]> | 2012-09-16 06:01:48 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-16 06:01:48 -0700 |
commit | 95535ce99eb7b0664fff4172764c4272fd3ddd15 (patch) | |
tree | 50179ca2c45b6a7a0f493e07e8e3547ec3e05129 | |
parent | df2e82da78a70a8929ed4bd065515eab7d1db336 (diff) |
Properly restore the SSE control word with __control87_2
-rw-r--r-- | Alc/helpers.c | 2 |
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); |