From 7a57b4590b8a0ea1f608d54b901f09593f0f3d3c Mon Sep 17 00:00:00 2001 From: LiJinlei Date: Wed, 27 Nov 2019 17:37:05 +0800 Subject: [PATCH] Fix build for iOS --- wgpu-native/src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-native/src/device.rs b/wgpu-native/src/device.rs index 1db2bb979..7180d3ada 100644 --- a/wgpu-native/src/device.rs +++ b/wgpu-native/src/device.rs @@ -21,7 +21,7 @@ pub fn wgpu_create_surface(raw_handle: raw_window_handle::RawWindowHandle) -> id let instance = &GLOBAL.instance; let surface = match raw_handle { #[cfg(target_os = "ios")] - Rwh::IOS(h) => Surface { + Rwh::IOS(h) => core::instance::Surface { #[cfg(feature = "vulkan-portability")] vulkan: None, metal: instance