1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 01:24:11 +01:00

[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 Philip Rebohle
parent b276c60f49
commit 7f1e52703d

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.