Skip to content

Commit

Permalink
Merge #2991
Browse files Browse the repository at this point in the history
2991: Fix compilation to iOS failed r=kvark a=grenlight

Fixes wgpu#315
PR checklist:
- [ ] `make` succeeds (on *nix)
- [ ] `make reftests` succeeds
- [x] tested examples with the following backends:metal
- [ ] `rustfmt` run on changed code


Co-authored-by: li jinlei <[email protected]>
  • Loading branch information
bors[bot] and jinleili authored Sep 3, 2019
2 parents 84305e0 + 4aae475 commit af9088a
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 af9088a

Please sign in to comment.