From 1b5cc1ca9cfc1bd8873db771482f43fe903ff2e7 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Fri, 19 Feb 2016 19:50:04 +0100 Subject: [PATCH] Fix some types for WSI. --- gfx/common/vulkan_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/common/vulkan_common.c b/gfx/common/vulkan_common.c index 7c5a55eee2..b1e8848900 100644 --- a/gfx/common/vulkan_common.c +++ b/gfx/common/vulkan_common.c @@ -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)