diff --git a/lib/src/renderer/vulkan/vulkan.rs b/lib/src/renderer/vulkan/vulkan.rs index b7a8b58..77bf0fa 100644 --- a/lib/src/renderer/vulkan/vulkan.rs +++ b/lib/src/renderer/vulkan/vulkan.rs @@ -32,15 +32,9 @@ pub struct RendererBackendManager { impl RendererBackendManager { pub fn new(display_handle: RawDisplayHandle) -> Self { - #[cfg(all( - any(target_os = "macos", target_os = "ios"), - target_feature = "vulkan-static" - ))] + #[cfg(all(any(target_os = "macos", target_os = "ios"), feature = "vulkan-static"))] let entry = ash_molten::load(); - #[cfg(not(all( - any(target_os = "macos", target_os = "ios"), - target_feature = "vulkan-static" - )))] + #[cfg(not(all(any(target_os = "macos", target_os = "ios"), feature = "vulkan-static")))] let entry = Entry::linked(); let name = std::ffi::CString::new("gameboy").unwrap(); @@ -51,7 +45,7 @@ impl RendererBackendManager { #[cfg(any(target_os = "macos", target_os = "ios"))] { - #[cfg(not(target_feature = "vulkan-static"))] + #[cfg(not(feature = "vulkan-static"))] extension_names.push(vk::KhrPortabilityEnumerationFn::name().as_ptr()); extension_names.push(vk::KhrGetPhysicalDeviceProperties2Fn::name().as_ptr()); }