From c9e0045881ee98bb6fb3d6d9e8e426877124b294 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 27 Mar 2018 18:38:24 -0400 Subject: [PATCH] PixelShaderGen: Remove dead code in WriteColor() The outer conditional executes only whenever destination alpha is used. --- Source/Core/VideoCommon/PixelShaderGen.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index 97ebe88f37..4e48ba1bbd 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -1408,10 +1408,7 @@ static void WriteColor(ShaderCode& out, APIType api_type, const pixel_shader_uid // Use dual-source color blending to perform dst alpha in a single pass if (use_dual_source) { - if (uid_data->useDstAlpha) out.Write("\tocol1.a = float(prev.a) / 255.0;\n"); - else - out.Write("\tocol1.a = float(" I_ALPHA ".a) / 255.0;\n"); } } }