mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-22 17:24:10 +00:00
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:
parent
93d51e64a7
commit
25c1489562
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue