summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2017-02-24 15:16:28 +0100
committerJules Blok <jules.blok@gmail.com>2017-02-26 11:34:48 +0100
commita15555fe0304e1ba560f91f8bacc8b121d226d1c (patch)
tree922822e65fa1303363f76896e9742ce7b5fd3582 /Source/Core/VideoCommon/BPStructs.cpp
parentbde81269130c31c93cbb0f0f3ac8f23560751cac (diff)
VideoBackends: Use vertex shader depth range if ztexture is used.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp
index 128969af52..e42f36f471 100644
--- a/Source/Core/VideoCommon/BPStructs.cpp
+++ b/Source/Core/VideoCommon/BPStructs.cpp
@@ -332,6 +332,8 @@ static void BPWritten(const BPCmd& bp)
{
if (bp.changes & 3)
PixelShaderManager::SetZTextureTypeChanged();
+ if (bp.changes & 12)
+ VertexShaderManager::SetViewportChanged();
#if defined(_DEBUG) || defined(DEBUGFAST)
const char* pzop[] = {"DISABLE", "ADD", "REPLACE", "?"};
const char* pztype[] = {"Z8", "Z16", "Z24", "?"};