From dcf1d50541522b6b08873032b5d8d147662a23b2 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Thu, 5 Jan 2017 08:34:22 +0000 Subject: [PATCH] Turns out this instance of _controlfp isn't needed either, just setting it in our Create Thread Proxy is enough for XDK titles. --- src/CxbxKrnl/EmuD3D8.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/CxbxKrnl/EmuD3D8.cpp b/src/CxbxKrnl/EmuD3D8.cpp index 71b0f3e3a..c906fc469 100644 --- a/src/CxbxKrnl/EmuD3D8.cpp +++ b/src/CxbxKrnl/EmuD3D8.cpp @@ -862,12 +862,7 @@ static DWORD WINAPI EmuCreateDeviceProxy(LPVOID) // Dxbx addition : Prevent Direct3D from changing the FPU Control word : g_EmuCDPD.BehaviorFlags |= D3DCREATE_FPU_PRESERVE; - // Set Floating Point Control Word (FPCW) : - _controlfp(_PC_53, _MCW_PC); // Set Precision control to 53 bits (verified setting) - _controlfp(_RC_NEAR, _MCW_RC); // Set Rounding control to near (unsure about this) - // TODO : Should we keep checking (and correcting) the FPCW during emulation?) - - // Address debug DirectX runtime warning in _DEBUG builds + // Address debug DirectX runtime warning in _DEBUG builds // Direct3D8: (WARN) :Device that was created without D3DCREATE_MULTITHREADED is being used by a thread other than the creation thread. #ifdef _DEBUG g_EmuCDPD.BehaviorFlags |= D3DCREATE_MULTITHREADED;