Skip to content

Commit

Permalink
Fix compiling to iOS failed
Browse files Browse the repository at this point in the history
  • Loading branch information
jinleili committed Sep 3, 2019
1 parent 84305e0 commit 4aae475
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/backend/vulkan/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ extern crate winit;
feature = "x11",
unix,
not(target_os = "android"),
not(target_os = "macos")
not(target_os = "macos"),
not(target_os = "ios")
))]
extern crate x11;
#[cfg(all(
Expand Down
6 changes: 4 additions & 2 deletions src/backend/vulkan/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ impl Instance {
feature = "x11",
unix,
not(target_os = "android"),
not(target_os = "macos")
not(target_os = "macos"),
not(target_os = "ios")
))]
RawWindowHandle::Wayland(handle)
if self.extensions.contains(&khr::WaylandSurface::name()) =>
Expand All @@ -327,7 +328,8 @@ impl Instance {
feature = "x11",
unix,
not(target_os = "android"),
not(target_os = "macos")
not(target_os = "macos"),
not(target_os = "ios")
))]
RawWindowHandle::X11(handle)
if self.extensions.contains(&khr::XlibSurface::name()) =>
Expand Down

0 comments on commit 4aae475

Please sign in to comment.