Disable stencil pass if there are no outlines.
This commit is contained in:
parent
2832f3047f
commit
0e7c1e80eb
@ -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: &[],
|
||||
|
Loading…
Reference in New Issue
Block a user