Commit 8981c32f authored by Jan Sikorski's avatar Jan Sikorski Committed by Alexandre Julliard

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: 's avatarJan Sikorski <jsikorski@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 43cae812
......@@ -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))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment