Module: wine Branch: master Commit: 08dc5b92e02536a173b19da5fba6788f492410e0 URL: https://source.winehq.org/git/wine.git/?a=commit;h=08dc5b92e02536a173b19da5f... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Feb 5 11:37:16 2021 +0100 wined3d: Invalidate STATE_STENCIL_REF when switching between NULL and non-NULL depth/stencil views. Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/cs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c index 1dfc881905b..0385b8f4693 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)