Full precision D3D hidden under a define

This commit is contained in:
Silent 2019-02-02 12:02:59 +01:00
parent 80242b42f7
commit 43501aa161
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -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<uint8_t>( 0x7F672B+1, *(uint8_t*)(0x7F672B+1) | D3DCREATE_FPU_PRESERVE );
Patch<uint8_t>( 0x7F6751+1, *(uint8_t*)(0x7F6751+1) | D3DCREATE_FPU_PRESERVE );
Patch<uint8_t>( 0x7F6755+1, *(uint8_t*)(0x7F6755+1) | D3DCREATE_FPU_PRESERVE );
Patch<uint8_t>( 0x7F6759+1, *(uint8_t*)(0x7F6759+1) | D3DCREATE_FPU_PRESERVE );
#endif
}
void Patch_SA_11()