From 95535ce99eb7b0664fff4172764c4272fd3ddd15 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 16 Sep 2012 06:01:48 -0700 Subject: Properly restore the SSE control word with __control87_2 --- Alc/helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/helpers.c') 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); -- cgit v1.2.3