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

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-02-05 11:37:16 +01:00 committed by Alexandre Julliard
parent 36597eda3d
commit 08dc5b92e0
1 changed files with 1 additions and 0 deletions

View File

@ -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)