summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelShaderManager.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@users.noreply.github.com>2017-08-02 20:10:34 +1000
committerGitHub <noreply@github.com>2017-08-02 20:10:34 +1000
commitd0bcdc7f89c0eb3b7c734d19fd150c9bc21aa4fc (patch)
treeeab29c7682f93383f01ef8a0b646eea8aed48737 /Source/Core/VideoCommon/PixelShaderManager.cpp
parenta8e4a3c9151ec4560b75211baecf8ed8899adea3 (diff)
parent852e30bb8ca71ae419cf5ed15c63ceba417c0f83 (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/PixelShaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/PixelShaderManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp
index 98fba2f08f..0fa3614bdb 100644
--- a/Source/Core/VideoCommon/PixelShaderManager.cpp
+++ b/Source/Core/VideoCommon/PixelShaderManager.cpp
@@ -447,17 +447,17 @@ void PixelShaderManager::SetGenModeChanged()
dirty = true;
}
-void PixelShaderManager::SetZControlChanged()
+void PixelShaderManager::SetZModeControl()
{
- u32 early_ztest = bpmem.zcontrol.early_ztest ? 1 : 0;
+ u32 late_ztest = bpmem.UseLateDepthTest();
u32 rgba6_format =
(bpmem.zcontrol.pixel_format == PEControl::RGBA6_Z24 && !g_ActiveConfig.bForceTrueColor) ? 1 :
0;
u32 dither = rgba6_format && bpmem.blendmode.dither;
- if (constants.early_ztest != early_ztest || constants.rgba6_format != rgba6_format ||
+ if (constants.late_ztest != late_ztest || constants.rgba6_format != rgba6_format ||
constants.dither != dither)
{
- constants.early_ztest = early_ztest;
+ constants.late_ztest = late_ztest;
constants.rgba6_format = rgba6_format;
constants.dither = dither;
dirty = true;