summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@users.noreply.github.com>2018-02-20 01:01:06 +1000
committerGitHub <noreply@github.com>2018-02-20 01:01:06 +1000
commit456c2f42c350e15402eea169a2cc87878327c1fc (patch)
tree14caf3385e509d0ff29c9a9b122179e648f7b781 /Source/Core/VideoCommon/BPStructs.cpp
parenta2d2a0a356cd9ef66077033b553fd09ba7423f9a (diff)
parentc1b39ecc582d5f6e7716f69644fbd54e53be538d (diff)
Merge pull request #6316 from stenzek/videocommon-viewport
Move guest viewport conversion to VideoCommon
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 609f82903a..6a78dc6dd7 100644
--- a/Source/Core/VideoCommon/BPStructs.cpp
+++ b/Source/Core/VideoCommon/BPStructs.cpp
@@ -130,6 +130,7 @@ static void BPWritten(const BPCmd& bp)
case BPMEM_SCISSORBR: // Scissor Rectable Bottom, Right
case BPMEM_SCISSOROFFSET: // Scissor Offset
SetScissor();
+ SetViewport();
VertexShaderManager::SetViewportChanged();
GeometryShaderManager::SetViewportChanged();
return;
@@ -1415,6 +1416,7 @@ void BPReload()
// note that PixelShaderManager is already covered since it has its own DoState.
SetGenerationMode();
SetScissor();
+ SetViewport();
SetDepthMode();
SetBlendMode();
OnPixelFormatChange();