Commit 80fcfbc2 authored by Georg Lehmann's avatar Georg Lehmann Committed by Alexandre Julliard

winevulkan: Initialize Vulkan in native_vkGetInstanceProcAddrWINE.

In the past this was done in DllMain, the removal broke winelib applications. Signed-off-by: 's avatarGeorg Lehmann <dadschoorse@gmail.com> Signed-off-by: 's avatarLiam Middlebrook <lmiddlebrook@nvidia.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent c7fd541c
......@@ -2053,6 +2053,10 @@ static void *wine_vk_get_global_proc_addr(const char *name)
*/
void *native_vkGetInstanceProcAddrWINE(VkInstance instance, const char *name)
{
wine_vk_init_once();
if (!vk_funcs)
return NULL;
return vk_funcs->p_vkGetInstanceProcAddr(instance, name);
}
......
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