diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index b6370bbe2..74564695b 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -844,7 +844,7 @@ impl StencilStateDescriptor { pub fn is_enabled(&self) -> bool { (self.front != StencilStateFaceDescriptor::IGNORE || self.back != StencilStateFaceDescriptor::IGNORE) - && self.read_mask != 0 + && (self.read_mask != 0 || self.write_mask != 0) } pub fn is_read_only(&self) -> bool { self.write_mask == 0