Commit 25c14895 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Consider the depth write mask in depth_stencil_state_desc_writes_ds()…

wined3d: Consider the depth write mask in depth_stencil_state_desc_writes_ds() only if depth testing is enabled. Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 93d51e64
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment