diff options
| author | Stenzek <stenzek@users.noreply.github.com> | 2017-08-02 20:10:34 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-02 20:10:34 +1000 |
| commit | d0bcdc7f89c0eb3b7c734d19fd150c9bc21aa4fc (patch) | |
| tree | eab29c7682f93383f01ef8a0b646eea8aed48737 /Source/Core/VideoCommon/UberShaderPixel.cpp | |
| parent | a8e4a3c9151ec4560b75211baecf8ed8899adea3 (diff) | |
| parent | 852e30bb8ca71ae419cf5ed15c63ceba417c0f83 (diff) | |
Merge pull request #5858 from stenzek/ubershader-6-bit-color
Ubershaders: Fix 6-bit color truncation not being applied
Diffstat (limited to 'Source/Core/VideoCommon/UberShaderPixel.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/UberShaderPixel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/UberShaderPixel.cpp b/Source/Core/VideoCommon/UberShaderPixel.cpp index 23d6725b3b..2c78d8e32f 100644 --- a/Source/Core/VideoCommon/UberShaderPixel.cpp +++ b/Source/Core/VideoCommon/UberShaderPixel.cpp @@ -894,7 +894,7 @@ ShaderCode GenPixelShader(APIType ApiType, const ShaderHostConfig& host_config, { out.Write(" // If early depth is enabled, write to zbuffer before depth textures\n"); out.Write(" // If early depth isn't enabled, we write to the zbuffer here\n"); - out.Write(" int zbuffer_zCoord = bpmem_early_ztest ? early_zCoord : zCoord;\n"); + out.Write(" int zbuffer_zCoord = bpmem_late_ztest ? zCoord : early_zCoord;\n"); if (ApiType == APIType::D3D || ApiType == APIType::Vulkan) out.Write(" depth = 1.0 - float(zbuffer_zCoord) / 16777216.0;\n"); else |
