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

Commit 1fb0d41

Browse files
committed
Use default stencil config for Picture::ToImage
1 parent daef206 commit 1fb0d41

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

impeller/aiks/picture.cc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,15 @@ std::shared_ptr<Texture> Picture::RenderToTexture(
6666
/*mip_count=*/1,
6767
"Picture Snapshot MSAA", // label
6868
RenderTarget::
69-
kDefaultColorAttachmentConfigMSAA, // color_attachment_config
70-
std::nullopt // stencil_attachment_config
69+
kDefaultColorAttachmentConfigMSAA // color_attachment_config
7170
);
7271
} else {
7372
target = render_target_allocator.CreateOffscreen(
7473
*impeller_context, // context
7574
size, // size
7675
/*mip_count=*/1,
77-
"Picture Snapshot", // label
78-
RenderTarget::kDefaultColorAttachmentConfig, // color_attachment_config
79-
std::nullopt // stencil_attachment_config
76+
"Picture Snapshot", // label
77+
RenderTarget::kDefaultColorAttachmentConfig // color_attachment_config
8078
);
8179
}
8280
if (!target.IsValid()) {

0 commit comments

Comments
 (0)