summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexShaderManager.cpp
diff options
context:
space:
mode:
authorLeo Lam <leolino.lam@gmail.com>2017-08-10 17:10:26 +0800
committerGitHub <noreply@github.com>2017-08-10 17:10:26 +0800
commite41a9905c01db496b6a4c2756e1814c7a4cffab0 (patch)
tree2539056ddbbb6c5237072c0c456d2d39d2ba5522 /Source/Core/VideoCommon/VertexShaderManager.cpp
parentd0304c9b38faa2184c720173d22a42cd389aa21f (diff)
parent1fc910b3ea9eafcc3cc5132bdfc51731ba5fa9fd (diff)
Merge pull request #5744 from JosJuice/remove-non-integer-irs
Remove non-integer IRs
Diffstat (limited to 'Source/Core/VideoCommon/VertexShaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexShaderManager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexShaderManager.cpp b/Source/Core/VideoCommon/VertexShaderManager.cpp
index ad20ab2332..2d1269509d 100644
--- a/Source/Core/VideoCommon/VertexShaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexShaderManager.cpp
@@ -376,8 +376,7 @@ void VertexShaderManager::SetConstants()
// NOTE: If we ever emulate antialiasing, the sample locations set by
// BP registers 0x01-0x04 need to be considered here.
const float pixel_center_correction = 7.0f / 12.0f - 0.5f;
- const bool bUseVertexRounding =
- g_ActiveConfig.bVertexRounding && g_ActiveConfig.iEFBScale != SCALE_1X;
+ const bool bUseVertexRounding = g_ActiveConfig.bVertexRounding && g_ActiveConfig.iEFBScale != 1;
const float viewport_width = bUseVertexRounding ?
(2.f * xfmem.viewport.wd) :
g_renderer->EFBToScaledXf(2.f * xfmem.viewport.wd);