Commit 3f3b0ac1 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Do not accumulate ended queries in wined3d_query_vk_poll().

parent d7b16697
......@@ -1571,7 +1571,9 @@ static BOOL wined3d_query_vk_poll(struct wined3d_query *query, uint32_t flags)
if (query_vk->pending_count)
goto unavailable;
if (!wined3d_query_vk_accumulate_data(query_vk, context_vk, &query_vk->pool_idx))
/* If the query was suspended, and then ended before it was resumed,
* there's no data to accumulate here. */
if (query_vk->pool_idx.pool_vk && !wined3d_query_vk_accumulate_data(query_vk, context_vk, &query_vk->pool_idx))
goto unavailable;
context_release(&context_vk->c);
......
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