[PATCH 4/4] wined3d: Consider the depth write mask in depth_stencil_state_desc_writes_ds() only if depth testing is enabled.
Zebediah Figura
zfigura at codeweavers.com
Thu Jun 2 20:23:50 CDT 2022
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/wined3d/state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index a732182d6c5..ee3e083e812 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -155,7 +155,7 @@ static bool stencil_op_writes_ds(const struct wined3d_stencil_op_desc *desc)
static bool depth_stencil_state_desc_writes_ds(const struct wined3d_depth_stencil_state_desc *desc)
{
- if (desc->depth_write)
+ if (desc->depth && desc->depth_write)
return true;
if (desc->stencil && desc->stencil_write_mask)
--
2.36.1
More information about the wine-devel
mailing list