[PATCH] wined3d: Don't try to reset query pools if we don't have a command buffer.
Jan Sikorski
jsikorski at codeweavers.com
Wed Aug 4 10:25:00 CDT 2021
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51419
Signed-off-by: Jan Sikorski <jsikorski at codeweavers.com>
---
dlls/wined3d/context_vk.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/dlls/wined3d/context_vk.c b/dlls/wined3d/context_vk.c
index eac4eacff5a..8df416851f2 100644
--- a/dlls/wined3d/context_vk.c
+++ b/dlls/wined3d/context_vk.c
@@ -1314,12 +1314,15 @@ void wined3d_context_vk_end_current_render_pass(struct wined3d_context_vk *conte
context_vk->vk_framebuffer = VK_NULL_HANDLE;
}
- LIST_FOR_EACH_ENTRY_SAFE(pool_vk, pool_vk_next, &context_vk->completed_query_pools,
- struct wined3d_query_pool_vk, completed_entry)
+ if (vk_command_buffer)
{
- list_remove(&pool_vk->completed_entry);
- list_init(&pool_vk->completed_entry);
- wined3d_query_pool_vk_reset(pool_vk, context_vk, 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)
+ {
+ list_remove(&pool_vk->completed_entry);
+ list_init(&pool_vk->completed_entry);
+ wined3d_query_pool_vk_reset(pool_vk, context_vk, vk_command_buffer);
+ }
}
}
--
2.30.2
More information about the wine-devel
mailing list