Fix windows structure type

This commit is contained in:
Tim 2018-07-31 14:51:37 +02:00
parent c4566b6ca9
commit c0d29d4940

View file

@ -126,7 +126,7 @@ unsafe fn create_surface<E: EntryV1_0, I: InstanceV1_0>(
let hwnd = window.get_hwnd() as HWND; let hwnd = window.get_hwnd() as HWND;
let hinstance = GetWindow(hwnd, 0) as *const vk::c_void; let hinstance = GetWindow(hwnd, 0) as *const vk::c_void;
let win32_create_info = vk::Win32SurfaceCreateInfoKHR { let win32_create_info = vk::Win32SurfaceCreateInfoKHR {
s_type: vk::StructureType::Win32SurfaceCreateInfoKhr, s_type: vk::StructureType::WIN32_SURFACE_CREATE_INFO_KHR,
p_next: ptr::null(), p_next: ptr::null(),
flags: Default::default(), flags: Default::default(),
hinstance: hinstance, hinstance: hinstance,