File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
impeller/playground/imgui Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,13 @@ bool ImGui_ImplImpeller_Init(std::shared_ptr<impeller::Context> context) {
89
89
impeller::ImguiRasterFragmentShader>::
90
90
MakeDefaultPipelineDescriptor (*context);
91
91
desc->SetSampleCount (impeller::SampleCount::kCount4 );
92
+ auto stencil = desc->GetFrontStencilAttachmentDescriptor ();
93
+ if (stencil.has_value ()) {
94
+ stencil->stencil_compare = impeller::CompareFunction::kAlways ;
95
+ stencil->depth_stencil_pass = impeller::StencilOperation::kKeep ;
96
+ desc->SetStencilAttachmentDescriptors (stencil.value ());
97
+ }
98
+
92
99
bd->pipeline =
93
100
context->GetPipelineLibrary ()->GetRenderPipeline (std::move (desc)).get ();
94
101
IM_ASSERT (bd->pipeline != nullptr && " Could not create ImGui pipeline." );
You can’t perform that action at this time.
0 commit comments