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

Commit d918b47

Browse files
committed
Fix depth writing for TextureContents
1 parent 0357f8b commit d918b47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

impeller/entity/contents/texture_contents.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ bool TextureContents::Render(const ContentContext& renderer,
153153
}
154154
pipeline_options.primitive_type = PrimitiveType::kTriangleStrip;
155155

156+
pipeline_options.depth_write_enabled =
157+
pipeline_options.blend_mode == BlendMode::kSource;
158+
156159
pass.SetPipeline(strict_source_rect_enabled_
157160
? renderer.GetTextureStrictSrcPipeline(pipeline_options)
158161
: renderer.GetTexturePipeline(pipeline_options));

0 commit comments

Comments
 (0)