From ddaf60976c9078ecab5ac1d6281a45dbb7fb4de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 13 Feb 2014 16:02:10 +0100 Subject: [PATCH] Only apply the FMA3 workaround in x64. http://connect.microsoft.com/VisualStudio/feedback/details/809664/the-crt-function-powf-will-crash-in-win8-1-pe --- Windows/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Windows/main.cpp b/Windows/main.cpp index 31653ae794..57cb591fe4 100644 --- a/Windows/main.cpp +++ b/Windows/main.cpp @@ -205,7 +205,9 @@ bool System_InputBoxGetWString(const wchar_t *title, const std::wstring &default int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow) { // FMA3 support in the 2013 CRT is broken on Vista and Windows 7 RTM (fixed in SP1). Just disable it. +#ifdef _M_X64 _set_FMA3_enable(0); +#endif EnableCrashingOnCrashes();