[PATCH] wined3d: Invalidate STATE_STENCIL_REF when switching between NULL and non-NULL depth/stencil views.

Henri Verbeet hverbeet at codeweavers.com
Fri Feb 5 04:37:16 CST 2021


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 dlls/wined3d/cs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c
index 1dfc881905bb..0385b8f46937 100644
--- a/dlls/wined3d/cs.c
+++ b/dlls/wined3d/cs.c
@@ -1229,6 +1229,7 @@ static void wined3d_cs_exec_set_depth_stencil_view(struct wined3d_cs *cs, const
     {
         /* Swapping NULL / non NULL depth stencil affects the depth and tests */
         device_invalidate_state(device, STATE_DEPTH_STENCIL);
+        device_invalidate_state(device, STATE_STENCIL_REF);
         device_invalidate_state(device, STATE_RASTERIZER);
     }
     else if (prev)
-- 
2.20.1




More information about the wine-devel mailing list