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:
parent
43cae812e5
commit
8981c32fa2
|
@ -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))))
|
||||
|
|
Loading…
Reference in New Issue