aboutsummaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_wsi_x11.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-15 15:38:20 -0700
committerJason Ekstrand <[email protected]>2015-10-15 15:38:20 -0700
commitf5eec407ead90b6aaeddb0d5416c129d1265ef01 (patch)
tree333898498424a4ab12bdca523455695cd68a36a1 /src/vulkan/anv_wsi_x11.c
parent03952b1513b7621bb0bb151d0947e8bada64ca04 (diff)
anv/x11: Treat the pPlatformWindow as a xcb_window_t* instead of xcb_window_t
Diffstat (limited to 'src/vulkan/anv_wsi_x11.c')
-rw-r--r--src/vulkan/anv_wsi_x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/anv_wsi_x11.c b/src/vulkan/anv_wsi_x11.c
index 8834230f9cd..3512238e245 100644
--- a/src/vulkan/anv_wsi_x11.c
+++ b/src/vulkan/anv_wsi_x11.c
@@ -55,7 +55,7 @@ x11_get_surface_properties(struct anv_wsi_implementation *impl,
{
VkPlatformHandleXcbKHR *vk_xcb_handle = vk_window->pPlatformHandle;
xcb_connection_t *conn = vk_xcb_handle->connection;
- xcb_window_t win = (xcb_window_t)(uintptr_t)vk_window->pPlatformWindow;
+ xcb_window_t win = *(xcb_window_t *)vk_window->pPlatformWindow;
xcb_get_geometry_cookie_t cookie = xcb_get_geometry(conn, win);
xcb_generic_error_t *err;
@@ -287,7 +287,7 @@ x11_create_swapchain(struct anv_wsi_implementation *impl,
VkPlatformHandleXcbKHR *vk_xcb_handle = vk_window->pPlatformHandle;
chain->conn = (xcb_connection_t *) vk_xcb_handle->connection;
- chain->window = (xcb_window_t) (uintptr_t)vk_window->pPlatformWindow;
+ chain->window = *(xcb_window_t *)vk_window->pPlatformWindow;
chain->extent = pCreateInfo->imageExtent;
chain->image_count = num_images;
chain->next_image = 0;