[PATCH 4/5] wined3d: Stencil test also uses the depth/stencil buffer.

Henri Verbeet hverbeet at codeweavers.com
Thu Jan 21 03:55:52 CST 2021


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 dlls/wined3d/wined3d_private.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 37fe3a314cb..a329e46aa48 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -3716,7 +3716,8 @@ static inline bool wined3d_state_uses_depth_buffer(const struct wined3d_state *s
 {
     if (!state->depth_stencil_state)
         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
-- 
2.20.1




More information about the wine-devel mailing list