wined3d: Stencil test also uses the depth/stencil buffer.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-01-21 10:55:52 +01:00 committed by Alexandre Julliard
parent a3f829bbb8
commit c47b28f5d4
1 changed files with 2 additions and 1 deletions

View File

@ -3709,7 +3709,8 @@ static inline bool wined3d_state_uses_depth_buffer(const struct wined3d_state *s
{ {
if (!state->depth_stencil_state) if (!state->depth_stencil_state)
return true; return true;
return state->depth_stencil_state->desc.depth || state->depth_stencil_state->desc.depth_write; return state->depth_stencil_state->desc.depth || state->depth_stencil_state->desc.depth_write
|| state->depth_stencil_state->desc.stencil;
} }
struct wined3d_dummy_textures struct wined3d_dummy_textures