mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
PixelShaderGen: Remove dead code in WriteColor()
The outer conditional executes only whenever destination alpha is used.
This commit is contained in:
@ -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
|
// Use dual-source color blending to perform dst alpha in a single pass
|
||||||
if (use_dual_source)
|
if (use_dual_source)
|
||||||
{
|
{
|
||||||
if (uid_data->useDstAlpha)
|
|
||||||
out.Write("\tocol1.a = float(prev.a) / 255.0;\n");
|
out.Write("\tocol1.a = float(prev.a) / 255.0;\n");
|
||||||
else
|
|
||||||
out.Write("\tocol1.a = float(" I_ALPHA ".a) / 255.0;\n");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user