[d3d9] Change correctness factor to 0.5f

The original issue that 0.5f - (1.0f / 128.0f) fixed is a game bug that also happens on Windows and the version of the addon used back then didn't fix correctly. With the latest version of the addon it looks correct.
This commit is contained in:
Blisto91 2024-11-16 21:54:14 +01:00 committed by GitHub
parent ce1b06d0c6
commit 091fa0f7c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6571,12 +6571,7 @@ namespace dxvk {
const D3DVIEWPORT9& vp = m_state.viewport;
// Correctness Factor for 1/2 texel offset
// We need to bias this slightly to make
// imprecision in games happy.
// Originally we did this only for powers of two
// resolutions but since NEAREST filtering fixed to
// truncate, we need to do this all the time now.
constexpr float cf = 0.5f - (1.0f / 128.0f);
constexpr float cf = 0.5f;
// How much to bias MinZ by to avoid a depth
// degenerate viewport.