From 0518ecca14ee166d04d53aecc8e737b28e7f9810 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 13 Nov 2012 15:20:36 -0800 Subject: [PATCH] Avoid storing the SSE state if it's not supported --- Alc/helpers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Alc/helpers.c b/Alc/helpers.c index 859e6c3d..44dc21a8 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -210,11 +210,14 @@ void SetMixerFPUMode(FPUCtl *ctl) #endif #elif defined(HAVE___CONTROL87_2) int mode; - __control87_2(0, 0, &ctl->state, &ctl->sse_state); + __control87_2(0, 0, &ctl->state, NULL); __control87_2(_RC_CHOP|_PC_24, _MCW_RC|_MCW_PC, &mode, NULL); #ifdef HAVE_SSE if((CPUCapFlags&CPU_CAP_SSE)) + { + __control87_2(0, 0, NULL, &ctl->sse_state); __control87_2(_RC_CHOP|_DN_FLUSH, _MCW_RC|_MCW_DN, NULL, &mode); + } #endif #elif defined(HAVE__CONTROLFP) ctl->state = _controlfp(0, 0); -- 2.11.4.GIT