• Camilla Löwy's avatar
    Cocoa: Add fully dynamic loading of Vulkan loader · 85172703
    Camilla Löwy authored
    If the application is not linked against the Vulkan loader and relies on
    a third-party loader library or glfwGetInstanceProcAddress, then our
    call to dlopen will fail without a custom dyld environment variable.
    This adds a fallback of looking in the directory of the main executable,
    which matches the bundle structure recommended by the Vulkan SDK, making
    that finally work out of the box for fully dynamic loading.
    (cherry picked from commit 7da87aaae7039cbdc132f8f563a2603c5e3c73a1)
cocoa_init.m 20.3 KB