Fix some types for WSI.

This commit is contained in:
Hans-Kristian Arntzen 2016-02-19 19:50:04 +01:00
parent 4e510247f5
commit 1b5cc1ca9c

View File

@ -1075,8 +1075,8 @@ bool vulkan_surface_create(gfx_ctx_vulkan_data_t *vk,
surf_info.sType = VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR;
surf_info.flags = 0;
surf_info.dpy = display;
surf_info.window = surface;
surf_info.dpy = *(const Display*)display;
surf_info.window = *(const Window*)surface;
if (vk->fpCreateXlibSurfaceKHR(vk->context.instance,
&surf_info, NULL, &vk->vk_surface)
@ -1094,8 +1094,8 @@ bool vulkan_surface_create(gfx_ctx_vulkan_data_t *vk,
surf_info.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
surf_info.flags = 0;
surf_info.connection = XGetXCBConnection(display);
surf_info.window = surface;
surf_info.connection = XGetXCBConnection((Display*)display);
surf_info.window = *(const xcb_window_t*)surface;
if (vk->fpCreateXcbSurfaceKHR(vk->context.instance,
&surf_info, NULL, &vk->vk_surface)