Fix glfwGetInstanceProcAddress for static linking

This commit is contained in:
Camilla Berglund
2016-11-01 19:24:36 +01:00
parent 017162e3fd
commit c3db1cae3f
2 changed files with 9 additions and 1 deletions
+7 -1
View File
@@ -240,7 +240,13 @@ GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance,
return NULL;
proc = (GLFWvkproc) vkGetInstanceProcAddr(instance, procname);
#if !defined(_GLFW_VULKAN_STATIC)
#if defined(_GLFW_VULKAN_STATIC)
if (!proc)
{
if (strcmp(procname, "vkGetInstanceProcAddr") == 0)
return (GLFWvkproc) vkGetInstanceProcAddr;
}
#else
if (!proc)
proc = (GLFWvkproc) _glfw_dlsym(_glfw.vk.handle, procname);
#endif