From a191c79fca923175e673605a2e0f8592e47f1a58 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sun, 30 Aug 2020 23:49:32 +0200 Subject: [PATCH] render: Workaround wgpu write-only stencil testing issue - fixes #1062 --- render/wgpu/src/pipelines.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/render/wgpu/src/pipelines.rs b/render/wgpu/src/pipelines.rs index 7c8ec9bb1..22d1814d0 100644 --- a/render/wgpu/src/pipelines.rs +++ b/render/wgpu/src/pipelines.rs @@ -188,7 +188,7 @@ fn create_color_pipelines( depth_fail_op: wgpu::StencilOperation::Keep, pass_op: wgpu::StencilOperation::Replace, }, - read_mask: 0, + read_mask: 0xff, write_mask: 1 << i, }, }), @@ -356,7 +356,7 @@ fn create_bitmap_pipeline( depth_fail_op: wgpu::StencilOperation::Keep, pass_op: wgpu::StencilOperation::Replace, }, - read_mask: 0, + read_mask: 0xff, write_mask: 1 << i, }, }), @@ -518,7 +518,7 @@ fn create_gradient_pipeline( depth_fail_op: wgpu::StencilOperation::Keep, pass_op: wgpu::StencilOperation::Replace, }, - read_mask: 0, + read_mask: 0xff, write_mask: 1 << i, }, }),