From d10571a86a30d1fe0540cebcb7ef05609451ae8b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 28 Feb 2015 00:04:02 -0500 Subject: [PATCH] PixelShaderManager: Remove unnecessary casts. EFBToScaledXf and EFBScaledYf return a float, so the cast isn't needed here. --- Source/Core/VideoCommon/PixelShaderManager.cpp | 4 ++-- 1 file 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; }