mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 19:00:13 +01:00
vulkan/wsi: Fix compiler warning when no WSI platforms are enabled.
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3539>
This commit is contained in:
parent
71c6208200
commit
05e3ccd8a1
1 changed files with 5 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ wsi_device_init(struct wsi_device *wsi,
|
|||
const struct driOptionCache *dri_options)
|
||||
{
|
||||
const char *present_mode;
|
||||
VkResult result;
|
||||
UNUSED VkResult result;
|
||||
|
||||
memset(wsi, 0, sizeof(*wsi));
|
||||
|
||||
|
|
@ -145,10 +145,13 @@ wsi_device_init(struct wsi_device *wsi,
|
|||
}
|
||||
|
||||
return VK_SUCCESS;
|
||||
|
||||
#if defined(VK_USE_PLATFORM_XCB_KHR) || \
|
||||
defined(VK_USE_PLATFORM_WAYLAND_KHR) || \
|
||||
defined(VK_USE_PLATFORM_DISPLAY_KHR)
|
||||
fail:
|
||||
wsi_device_finish(wsi, alloc);
|
||||
return result;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue