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

Commit 9576d97

Browse files
authored
[Impeller] Fix pipeline attachment layout in CanRenderToTexture. (#50413)
The pipeline descriptor defaults changed, so we need to align the attachments to the RenderPass in this test. Should fix flutter/flutter#142868.
1 parent ee297c0 commit 9576d97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

impeller/renderer/renderer_unittests.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ TEST_P(RendererTest, CanRenderToTexture) {
291291
auto pipeline_desc =
292292
BoxPipelineBuilder::MakeDefaultPipelineDescriptor(*context);
293293
pipeline_desc->SetSampleCount(SampleCount::kCount1);
294+
pipeline_desc->ClearDepthAttachment();
295+
pipeline_desc->SetStencilPixelFormat(PixelFormat::kS8UInt);
294296

295297
ASSERT_TRUE(pipeline_desc.has_value());
296298
auto box_pipeline =

0 commit comments

Comments
 (0)