mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
wsi/wayland: fix pointer casting warning on 32bit
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
687babc045
commit
f2e24dd81d
1 changed files with 2 additions and 1 deletions
|
|
@ -672,6 +672,7 @@ struct wsi_wl_swapchain {
|
|||
|
||||
struct wsi_wl_image images[0];
|
||||
};
|
||||
WSI_DEFINE_NONDISP_HANDLE_CASTS(wsi_wl_swapchain, VkSwapchainKHR)
|
||||
|
||||
static struct wsi_image *
|
||||
wsi_wl_swapchain_get_wsi_image(struct wsi_swapchain *wsi_chain,
|
||||
|
|
@ -967,7 +968,7 @@ wsi_wl_surface_create_swapchain(VkIcdSurfaceBase *icd_surface,
|
|||
/* If we have an oldSwapchain parameter, copy the display struct over
|
||||
* from the old one so we don't have to fully re-initialize it.
|
||||
*/
|
||||
struct wsi_wl_swapchain *old_chain = (void *)pCreateInfo->oldSwapchain;
|
||||
WSI_FROM_HANDLE(wsi_wl_swapchain, old_chain, pCreateInfo->oldSwapchain);
|
||||
chain->display = wsi_wl_display_ref(old_chain->display);
|
||||
} else {
|
||||
chain->display = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue