wined3d: Use wined3d_mask_from_size() in wined3d_context_vk_apply_draw_state().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-07-05 17:02:36 +02:00 committed by Alexandre Julliard
parent 3ed5dd1336
commit 76cef0869f
1 changed files with 1 additions and 1 deletions

View File

@ -3231,7 +3231,7 @@ VkCommandBuffer wined3d_context_vk_apply_draw_state(struct wined3d_context_vk *c
if (wined3d_context_is_graphics_state_dirty(&context_vk->c, STATE_STENCIL_REF) && dsv)
{
VK_CALL(vkCmdSetStencilReference(vk_command_buffer, VK_STENCIL_FACE_FRONT_AND_BACK,
state->stencil_ref & ((1 << dsv->format->stencil_size) - 1)));
state->stencil_ref & wined3d_mask_from_size(dsv->format->stencil_size)));
}
if (wined3d_context_is_graphics_state_dirty(&context_vk->c, STATE_STREAMSRC))