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

Commit 2830572

Browse files
committed
Create depth+stencil for offscreen targets in Picture::RenderToTexture
1 parent ab75373 commit 2830572

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
@@ -67,18 +67,16 @@ std::shared_ptr<Texture> Picture::RenderToTexture(
6767
/*mip_count=*/1,
6868
"Picture Snapshot MSAA", // label
6969
RenderTarget::
70-
kDefaultColorAttachmentConfigMSAA, // color_attachment_config
71-
std::nullopt // stencil_attachment_config
70+
kDefaultColorAttachmentConfigMSAA // color_attachment_config
7271
);
7372
} else {
7473
target = RenderTarget::CreateOffscreen(
7574
*impeller_context, // context
7675
render_target_allocator, // allocator
7776
size, // size
7877
/*mip_count=*/1,
79-
"Picture Snapshot", // label
80-
RenderTarget::kDefaultColorAttachmentConfig, // color_attachment_config
81-
std::nullopt // stencil_attachment_config
78+
"Picture Snapshot", // label
79+
RenderTarget::kDefaultColorAttachmentConfig // color_attachment_config
8280
);
8381
}
8482
if (!target.IsValid()) {

0 commit comments

Comments
 (0)