Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 9f68ae8

Browse files
committed
Fix difference clip
1 parent 68e0b12 commit 9f68ae8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

impeller/entity/contents/clip_contents.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ bool ClipContents::Render(const ContentContext& renderer,
8989
{
9090
pass.SetCommandLabel("Difference Clip (Increment)");
9191

92+
options.stencil_compare = CompareFunction::kEqual;
93+
options.stencil_operation = StencilOperation::kIncrementClamp;
94+
9295
auto points = Rect::MakeSize(pass.GetRenderTargetSize()).GetPoints();
9396
auto vertices =
9497
VertexBufferBuilder<VS::PerVertexData>{}

0 commit comments

Comments
 (0)