wined3d: Reinitialize query pool's free list entry when it runs out.

We check if it's empty to put it back in.

Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jan Sikorski 2022-02-10 15:21:55 +01:00 committed by Alexandre Julliard
parent 43cae812e5
commit 8981c32fa2
1 changed files with 1 additions and 0 deletions

View File

@ -1446,6 +1446,7 @@ bool wined3d_context_vk_allocate_query(struct wined3d_context_vk *context_vk,
if (wined3d_query_pool_vk_allocate_query(pool_vk, &idx))
goto done;
list_remove(&pool_vk->entry);
list_init(&pool_vk->entry);
}
if (!(pool_vk = heap_alloc_zero(sizeof(*pool_vk))))