mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
vulkan/device-select: fix vkGetInstanceProcAddr self-resolving
vkGetInstanceProcAddr(instance, "vkGetInstanceProcAddr") should return our vkGetInstanceProcAddr not the next in the chain. CC: mesa-stable Signed-off-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8286>
This commit is contained in:
parent
d2524ed4a0
commit
67de6356f8
1 changed files with 2 additions and 0 deletions
|
|
@ -490,6 +490,8 @@ static void (*get_pdevice_proc_addr(VkInstance instance, const char* name))()
|
|||
|
||||
static void (*get_instance_proc_addr(VkInstance instance, const char* name))()
|
||||
{
|
||||
if (strcmp(name, "vkGetInstanceProcAddr") == 0)
|
||||
return (void(*)())get_instance_proc_addr;
|
||||
if (strcmp(name, "vkCreateInstance") == 0)
|
||||
return (void(*)())device_select_CreateInstance;
|
||||
if (strcmp(name, "vkDestroyInstance") == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue