This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ std::shared_ptr<Texture> Picture::RenderToTexture(
6767 " Picture Snapshot MSAA" , // label
6868 RenderTarget::
6969 kDefaultColorAttachmentConfigMSAA , // color_attachment_config
70- std::nullopt // stencil_attachment_config
70+ RenderTarget::
71+ kDefaultStencilAttachmentConfig // stencil_attachment_config
7172 );
7273 } else {
7374 target = render_target_allocator.CreateOffscreen (
@@ -76,7 +77,8 @@ std::shared_ptr<Texture> Picture::RenderToTexture(
7677 /* mip_count=*/ 1 ,
7778 " Picture Snapshot" , // label
7879 RenderTarget::kDefaultColorAttachmentConfig , // color_attachment_config
79- std::nullopt // stencil_attachment_config
80+ RenderTarget::
81+ kDefaultStencilAttachmentConfig // stencil_attachment_config
8082 );
8183 }
8284 if (!target.IsValid ()) {
Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ class ContentContext {
408408 // /
409409 // TODO(bdero): Remove this setting once StC is fully de-risked
410410 // https://github.com/flutter/flutter/issues/123671
411- static constexpr bool kEnableStencilThenCover = false ;
411+ static constexpr bool kEnableStencilThenCover = true ;
412412
413413#if IMPELLER_ENABLE_3D
414414 std::shared_ptr<scene::SceneContext> GetSceneContext () const ;
You can’t perform that action at this time.
0 commit comments