PixelShaderGen: Remove dead code in WriteColor()

The outer conditional executes only whenever destination alpha is used.
This commit is contained in:
Lioncash 2018-03-27 18:38:24 -04:00
parent c55b3a664d
commit c9e0045881
1 changed files with 0 additions and 3 deletions

View File

@ -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");
}
}
}