Module: wine Branch: master Commit: 25c148956218bf47894b9dbe4acf7778b18d769e URL: https://source.winehq.org/git/wine.git/?a=commit;h=25c148956218bf47894b9dbe4...
Author: Zebediah Figura zfigura@codeweavers.com Date: Thu Jun 2 20:23:50 2022 -0500
wined3d: Consider the depth write mask in depth_stencil_state_desc_writes_ds() only if depth testing is enabled.
Signed-off-by: Zebediah Figura zfigura@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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)