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

Alexandre Julliard julliard at winehq.org
Thu Jan 21 16:19:15 CST 2021


Module: wine
Branch: master
Commit: c47b28f5d4324ec77404319a1dc22584f006ed1f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c47b28f5d4324ec77404319a1dc22584f006ed1f

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Jan 21 10:55:52 2021 +0100

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

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 e010deb1264..07ddb57333c 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -3709,7 +3709,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




More information about the wine-cvs mailing list