Merge pull request #151 from gwihlidal/mac_fixes

Fix macOS instance loading - use libvulkan.dylib instead of libMoltenVK.dylib so that loader is not bypassed
This commit is contained in:
Maik Klein 2018-11-16 18:23:02 +01:00 committed by GitHub
commit 058e4284f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ const LIB_PATH: &'static str = "libvulkan.so.1";
const LIB_PATH: &'static str = "libvulkan.so"; const LIB_PATH: &'static str = "libvulkan.so";
#[cfg(any(target_os = "macos", target_os = "ios"))] #[cfg(any(target_os = "macos", target_os = "ios"))]
const LIB_PATH: &'static str = "libMoltenVK.dylib"; const LIB_PATH: &'static str = "libvulkan.dylib";
lazy_static! { lazy_static! {
static ref VK_LIB: Result<DynamicLibrary, String> = static ref VK_LIB: Result<DynamicLibrary, String> =