summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2018-01-21 22:04:15 +1000
committerStenzek <stenzek@gmail.com>2018-02-20 00:49:32 +1000
commit5359396099dd09583a155dbf4c6bd04df0a97582 (patch)
tree205baf7bea96fbb14ad1c8425fbe9e65fdd11f49 /Source/Core/VideoCommon/BPStructs.cpp
parenta2d2a0a356cd9ef66077033b553fd09ba7423f9a (diff)
BPFunctions: Move GX 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();