mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
hal/metal: fix the back-face stencil state
This commit is contained in:
1 parent
8a16aca0fc
commit
f82bb96212
1 file changed
+1
-1
@@ -42,7 +42,7 @@ fn create_depth_stencil_desc(state: &wgt::DepthStencilState) -> mtl::DepthStenci
|
||||
let front_desc = create_stencil_desc(&s.front, s.read_mask, s.write_mask);
|
||||
desc.set_front_face_stencil(Some(&front_desc));
|
||||
let back_desc = create_stencil_desc(&s.back, s.read_mask, s.write_mask);
|
||||
desc.set_front_face_stencil(Some(&back_desc));
|
||||
desc.set_back_face_stencil(Some(&back_desc));
|
||||
}
|
||||
desc
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user