mirror of
https://github.com/glfw/glfw.git
synced 2025-02-20 15:40:39 +00:00
Fix MoltenVK Loading on macOS
Loading Vulkan fails on macOS even if the user has libMoltenVK.dylib. This is because it tries to load libvulkan.1.dylib, not libMoltenVK.dylib.
This commit is contained in:
parent
36f0bf00a9
commit
3cbaf61936
@ -60,7 +60,7 @@ GLFWbool _glfwInitVulkan(int mode)
|
||||
#elif defined(_GLFW_WIN32)
|
||||
_glfw.vk.handle = _glfwPlatformLoadModule("vulkan-1.dll");
|
||||
#elif defined(_GLFW_COCOA)
|
||||
_glfw.vk.handle = _glfwPlatformLoadModule("libvulkan.1.dylib");
|
||||
_glfw.vk.handle = _glfwPlatformLoadModule("libMoltenVK.dylib");
|
||||
if (!_glfw.vk.handle)
|
||||
_glfw.vk.handle = _glfwLoadLocalVulkanLoaderCocoa();
|
||||
#elif defined(__OpenBSD__) || defined(__NetBSD__)
|
||||
|
Loading…
Reference in New Issue
Block a user