mirror of
https://github.com/storytold/wgpu.git
synced 2026-12-01 18:43:52 +01:00
Fix write-only stencil state descriptors from not working - fixes #911
This commit is contained in:
1 parent
d1279638fc
commit
983880d28c
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user