Commit 9b9f07ca authored by Jan Sikorski's avatar Jan Sikorski Committed by Alexandre Julliard

wined3d: Don't try to reset query pools if we don't have a command buffer.

parent b4da1403
......@@ -1314,6 +1314,8 @@ void wined3d_context_vk_end_current_render_pass(struct wined3d_context_vk *conte
context_vk->vk_framebuffer = VK_NULL_HANDLE;
}
if (vk_command_buffer)
{
LIST_FOR_EACH_ENTRY_SAFE(pool_vk, pool_vk_next, &context_vk->completed_query_pools,
struct wined3d_query_pool_vk, completed_entry)
{
......@@ -1321,6 +1323,7 @@ void wined3d_context_vk_end_current_render_pass(struct wined3d_context_vk *conte
list_init(&pool_vk->completed_entry);
wined3d_query_pool_vk_reset(pool_vk, context_vk, vk_command_buffer);
}
}
}
static void wined3d_context_vk_destroy_render_pass(struct wine_rb_entry *entry, void *ctx)
......
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