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>
This commit is contained in:
Zebediah Figura 2022-06-02 20:23:50 -05:00 committed by Alexandre Julliard
parent 93d51e64a7
commit 25c1489562

View file

@ -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)