diff options
| author | Stenzek <stenzek@gmail.com> | 2018-01-21 22:04:15 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2018-02-20 00:49:32 +1000 |
| commit | 5359396099dd09583a155dbf4c6bd04df0a97582 (patch) | |
| tree | 205baf7bea96fbb14ad1c8425fbe9e65fdd11f49 /Source/Core/VideoCommon/VertexShaderManager.cpp | |
| parent | a2d2a0a356cd9ef66077033b553fd09ba7423f9a (diff) | |
BPFunctions: Move GX viewport conversion to VideoCommon
Diffstat (limited to 'Source/Core/VideoCommon/VertexShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexShaderManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexShaderManager.cpp b/Source/Core/VideoCommon/VertexShaderManager.cpp index 7a7d3c03cb..9d3c25ca13 100644 --- a/Source/Core/VideoCommon/VertexShaderManager.cpp +++ b/Source/Core/VideoCommon/VertexShaderManager.cpp @@ -16,6 +16,7 @@ #include "Common/MathUtil.h" #include "Core/ConfigManager.h" #include "Core/Core.h" +#include "VideoCommon/BPFunctions.h" #include "VideoCommon/BPMemory.h" #include "VideoCommon/CPMemory.h" #include "VideoCommon/RenderBase.h" @@ -420,8 +421,7 @@ void VertexShaderManager::SetConstants() } dirty = true; - // This is so implementation-dependent that we can't have it here. - g_renderer->SetViewport(); + BPFunctions::SetViewport(); // Update projection if the viewport isn't 1:1 useable if (!g_ActiveConfig.backend_info.bSupportsOversizedViewports) |
