mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
Fix write-only stencil state descriptors from not working - fixes #911
This commit is contained in:
parent
d1279638fc
commit
881e6c1415
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user