From 6fa7d193ed1d9301a95eb8616ef08327e7b27885 Mon Sep 17 00:00:00 2001 From: Graham Wihlidal Date: Fri, 16 Nov 2018 13:39:14 +0100 Subject: [PATCH] Compile fixes for macOS --- examples/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/src/lib.rs b/examples/src/lib.rs index 91b7c1b..db77214 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -153,15 +153,15 @@ unsafe fn create_surface( view.setWantsLayer(YES); let create_info = vk::MacOSSurfaceCreateInfoMVK { - s_type: vk::StructureType::MacOSSurfaceCreateInfoMvk, + s_type: vk::StructureType::MACOS_SURFACE_CREATE_INFO_M, p_next: ptr::null(), flags: Default::default(), - p_view: window.get_nsview() as *const vk::types::c_void + p_view: window.get_nsview() as *const c_void }; let macos_surface_loader = - MacOSSurface::new(entry, instance).expect("Unable to load macOS surface"); - macos_surface_loader.create_macos_surface_mvk(&create_info, None) + MacOSSurface::new(entry, instance); + macos_surface_loader.create_mac_os_surface_mvk(&create_info, None) } #[cfg(target_os = "windows")]