mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Disable all dl* calls for _GLFW_VULKAN_STATIC
This commit is contained in:
parent
67931bdeb2
commit
a9282bad29
@ -136,8 +136,10 @@ GLFWbool _glfwInitVulkan(void)
|
||||
|
||||
void _glfwTerminateVulkan(void)
|
||||
{
|
||||
#if !defined(_GLFW_VULKAN_STATIC)
|
||||
if (_glfw.vk.handle)
|
||||
_glfw_dlclose(_glfw.vk.handle);
|
||||
#endif
|
||||
}
|
||||
|
||||
const char* _glfwGetVulkanResultString(VkResult result)
|
||||
@ -236,8 +238,10 @@ GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance,
|
||||
}
|
||||
|
||||
proc = (GLFWvkproc) vkGetInstanceProcAddr(instance, procname);
|
||||
#if !defined(_GLFW_VULKAN_STATIC)
|
||||
if (!proc)
|
||||
proc = (GLFWvkproc) _glfw_dlsym(_glfw.vk.handle, procname);
|
||||
#endif
|
||||
|
||||
return proc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user