[PATCH] wined3d: Invalidate STATE_STENCIL_REF when switching between NULL and non-NULL depth/stencil views.
5 Feb
2021
5 Feb
'21
10:37 a.m.
Signed-off-by: Henri Verbeet <hverbeet(a)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
1777
Age (days ago)
1777
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet