From 3cbaf619368d233dcb320b9dec5433c4d037800b Mon Sep 17 00:00:00 2001 From: GameParrot <85067619+GameParrot@users.noreply.github.com> Date: Fri, 8 Jul 2022 21:57:23 -0400 Subject: [PATCH] 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. --- src/vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan.c b/src/vulkan.c index 64a4650f..4d3b3b40 100644 --- a/src/vulkan.c +++ b/src/vulkan.c @@ -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__)