Fix linux library name

This commit is contained in:
Ben-Alderson 2016-04-04 14:09:02 -04:00
parent fe60882bd1
commit 174c83bf06

View File

@ -90,7 +90,7 @@ mod vk {
lazy_static! {
static ref VK_LIB: shared_library::dynamic_library::DynamicLibrary = {
#[cfg(windows)] fn get_path() -> &'static Path { Path::new("vulkan-1.dll") }
#[cfg(unix)] fn get_path() -> &'static Path { Path::new("libvulkan-1.so") }
#[cfg(unix)] fn get_path() -> &'static Path { Path::new("libvulkan.so.1") }
let path = get_path();
shared_library::dynamic_library::DynamicLibrary::open(Some(path)).unwrap()
};