[Impeller] Fix modulate blend mode (flutter/engine#36659)

This commit is contained in:
Brandon DeRosier
2022-10-07 20:38:31 -07:00
committed by GitHub
parent 3b3ae65e52
commit be8ad1dd69

View File

@@ -110,8 +110,7 @@ void ContentContextOptions::ApplyToPipelineDescriptor(
color0.src_color_blend_factor = BlendFactor::kOne;
break;
case BlendMode::kModulate:
// kSourceColor and kDestinationColor override the alpha blend factor.
color0.dst_alpha_blend_factor = BlendFactor::kZero;
color0.dst_alpha_blend_factor = BlendFactor::kSourceAlpha;
color0.dst_color_blend_factor = BlendFactor::kSourceColor;
color0.src_alpha_blend_factor = BlendFactor::kZero;
color0.src_color_blend_factor = BlendFactor::kZero;