Skip to content

Commit

Permalink
[Impeller] fixed the behavior for clear
Browse files Browse the repository at this point in the history
  • Loading branch information
gaaclarke committed Sep 25, 2023
1 parent 6bb3a05 commit 4229338
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions impeller/entity/contents/content_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ void ContentContextOptions::ApplyToPipelineDescriptor(

switch (pipeline_blend) {
case BlendMode::kClear:
color0.dst_alpha_blend_factor = BlendFactor::kZero;
color0.dst_color_blend_factor = BlendFactor::kZero;
color0.src_alpha_blend_factor = BlendFactor::kZero;
color0.src_color_blend_factor = BlendFactor::kZero;
color0.alpha_blend_op = BlendOperation::kReverseSubtract;
color0.color_blend_op = BlendOperation::kReverseSubtract;
color0.dst_alpha_blend_factor = BlendFactor::kOne;
color0.dst_color_blend_factor = BlendFactor::kOne;
color0.src_alpha_blend_factor = BlendFactor::kDestinationColor;
color0.src_color_blend_factor = BlendFactor::kDestinationColor;
break;
case BlendMode::kSource:
color0.blending_enabled = false;
Expand Down

0 comments on commit 4229338

Please sign in to comment.