Disable stencil pass if there are no outlines.

This commit is contained in:
Robin KAY 2022-08-06 01:41:17 +01:00
parent 2832f3047f
commit 0e7c1e80eb

View File

@ -169,8 +169,8 @@ impl Node for OutlineNode {
} // No window
};
// Always run stencil pass to ensure depth buffer is cleared
{
// If drawing anything, run stencil pass to clear the depth buffer
if !opaque_phase.items.is_empty() || !transparent_phase.items.is_empty() {
let pass_descriptor = RenderPassDescriptor {
label: Some("outline_stencil_pass"),
color_attachments: &[],