mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
vulkan/wsi: clean up cleanup path
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Keith Packard <keithp@keithp.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
a793e7899f
commit
e903a7b0bb
1 changed files with 7 additions and 7 deletions
|
|
@ -82,20 +82,20 @@ wsi_device_init(struct wsi_device *wsi,
|
|||
#ifdef VK_USE_PLATFORM_XCB_KHR
|
||||
result = wsi_x11_init_wsi(wsi, alloc);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
goto fail;
|
||||
#endif
|
||||
|
||||
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||
result = wsi_wl_init_wsi(wsi, alloc, pdevice);
|
||||
if (result != VK_SUCCESS) {
|
||||
#ifdef VK_USE_PLATFORM_XCB_KHR
|
||||
wsi_x11_finish_wsi(wsi, alloc);
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
if (result != VK_SUCCESS)
|
||||
goto fail;
|
||||
#endif
|
||||
|
||||
return VK_SUCCESS;
|
||||
|
||||
fail:
|
||||
wsi_device_finish(wsi, alloc);
|
||||
return result;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue