PixelShaderGen: Remove dead code in WriteColor()
The outer conditional executes only whenever destination alpha is used.
This commit is contained in:
parent
c55b3a664d
commit
c9e0045881
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue