[PATCH 4/4] winex11: implement vk_icdGetInstanceProcAddr

Roderick Colenbrander <[email protected]>
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
---
 dlls/winex11.drv/vulkan.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/vulkan.c b/dlls/winex11.drv/vulkan.c
index d3fe9c390a..eb2220181d 100644
--- a/dlls/winex11.drv/vulkan.c
+++ b/dlls/winex11.drv/vulkan.c
@@ -87,8 +87,10 @@ PFN_vkVoidFunction WINAPI X11DRV_vkGetInstanceProcAddr(VkInstance instance, cons
 
 void* WINAPI X11DRV_vk_icdGetInstanceProcAddr(VkInstance instance, const char* pName)
 {
-    FIXME("stub: %p, %s\n", instance, pName ? pName : "NULL");
-    return NULL;
+    TRACE("%p, %s\n", instance, pName ? pName : "NULL");
+
+    /* vkGetInstanceProcAddr came in ICD version 0, so implement on top of it as it is older. */
+    return X11DRV_vkGetInstanceProcAddr(instance, pName);
 }
 
 VkResult WINAPI X11DRV_vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t* pSupportedVersion)
-- 
2.13.6
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.