From a25d11ea41a20f1fbb64851ceb5b0a2d5b94ff76 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 5 Oct 2023 10:26:33 +1100 Subject: [PATCH] i messed up the cfg directives --- lib/src/renderer/vulkan/vulkan.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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()); }