Commit bfb5064f authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winevulkan: Search for debug report callback from the start of the chain.

parent 29e5b682
...@@ -512,9 +512,7 @@ static VkResult wine_vk_instance_convert_create_info(struct conversion_context * ...@@ -512,9 +512,7 @@ static VkResult wine_vk_instance_convert_create_info(struct conversion_context *
debug_utils_messenger->pUserData = &object->utils_messengers[i]; debug_utils_messenger->pUserData = &object->utils_messengers[i];
} }
debug_report_callback = find_next_struct(header->pNext, if ((debug_report_callback = find_next_struct(dst->pNext, VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT)))
VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT);
if (debug_report_callback)
{ {
object->default_callback.instance = object; object->default_callback.instance = object;
object->default_callback.debug_callback = VK_NULL_HANDLE; object->default_callback.debug_callback = VK_NULL_HANDLE;
......
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