wined3d: Clear the graphics pipeline key stencil test state when the stencil test is disabled.

The state itself is ignored in this case, but could still cause additional
pipeline variants to be created. That's mostly a consideration for Direct3D 9
and before, since Direct3D 10 and 11 already normalise disabled stencil test
state themselves.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2020-10-13 16:50:54 +03:30 committed by Alexandre Julliard
parent 227605569a
commit e154c95355
1 changed files with 5 additions and 0 deletions

View File

@ -2080,6 +2080,11 @@ static bool wined3d_context_vk_update_graphics_pipeline_key(struct wined3d_conte
key->ds_desc.back.reference = state->render_states[WINED3D_RS_STENCILREF]
& ((1 << state->fb.depth_stencil->format->stencil_size) - 1);
}
else
{
memset(&key->ds_desc.front, 0, sizeof(key->ds_desc.front));
memset(&key->ds_desc.back, 0, sizeof(key->ds_desc.back));
}
}
else
{