summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelShaderManager.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-02-28 00:04:02 -0500
committerLioncash <mathew1800@gmail.com>2015-02-28 00:04:05 -0500
commitd10571a86a30d1fe0540cebcb7ef05609451ae8b (patch)
treeb76fc1a3054632d4bb443d6ad6fbac4a2a45e7d2 /Source/Core/VideoCommon/PixelShaderManager.cpp
parentc792d45d89fdcb6e721104409db424e18c070460 (diff)
PixelShaderManager: Remove unnecessary casts.
EFBToScaledXf and EFBScaledYf return a float, so the cast isn't needed here.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/PixelShaderManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp
index b1a68248ee..694f78e68f 100644
--- a/Source/Core/VideoCommon/PixelShaderManager.cpp
+++ b/Source/Core/VideoCommon/PixelShaderManager.cpp
@@ -159,8 +159,8 @@ void PixelShaderManager::SetViewportChanged()
void PixelShaderManager::SetEfbScaleChanged()
{
- constants.efbscale[0] = 1.0f / float(Renderer::EFBToScaledXf(1));
- constants.efbscale[1] = 1.0f / float(Renderer::EFBToScaledYf(1));
+ constants.efbscale[0] = 1.0f / Renderer::EFBToScaledXf(1);
+ constants.efbscale[1] = 1.0f / Renderer::EFBToScaledYf(1);
dirty = true;
}