From 43501aa1616b9ad8edf2a6a660aaefbde977e3ae Mon Sep 17 00:00:00 2001 From: Silent Date: Sat, 2 Feb 2019 12:02:59 +0100 Subject: [PATCH] Full precision D3D hidden under a define --- SilentPatchSA/SilentPatchSA.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index ba2dbe9..d550b89 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -3748,6 +3748,15 @@ void Patch_SA_10() // Don't clean the car BEFORE Pay 'n Spray doors close, as it gets cleaned later again anyway! Nop( 0x44ACDC, 6 ); + + +#if FULL_PRECISION_D3D + // Test - full precision D3D device + Patch( 0x7F672B+1, *(uint8_t*)(0x7F672B+1) | D3DCREATE_FPU_PRESERVE ); + Patch( 0x7F6751+1, *(uint8_t*)(0x7F6751+1) | D3DCREATE_FPU_PRESERVE ); + Patch( 0x7F6755+1, *(uint8_t*)(0x7F6755+1) | D3DCREATE_FPU_PRESERVE ); + Patch( 0x7F6759+1, *(uint8_t*)(0x7F6759+1) | D3DCREATE_FPU_PRESERVE ); +#endif } void Patch_SA_11()