summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelShaderGen.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-03-27 18:38:24 -0400
committerLioncash <mathew1800@gmail.com>2018-03-27 18:46:25 -0400
commitc9e0045881ee98bb6fb3d6d9e8e426877124b294 (patch)
treeb2ea748e5c4ac4c89517d0715d1b64cadeba88c5 /Source/Core/VideoCommon/PixelShaderGen.cpp
parentc55b3a664df126d6243062a2fd141c7c4d33dc72 (diff)
PixelShaderGen: Remove dead code in WriteColor()
The outer conditional executes only whenever destination alpha is used.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/PixelShaderGen.cpp3
1 files changed, 0 insertions, 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");
}
}
}