1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

winewayland: Remove unnecessary vkDestroySurfaceKHR NULL checks.

This commit is contained in:
Rémi Bernon 2024-02-24 13:18:08 +01:00 committed by Alexandre Julliard
parent a3adb19bef
commit 630d79439c

View file

@ -417,9 +417,6 @@ static void wayland_vkDestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surfac
if (allocator)
FIXME("Support for allocation callbacks not implemented yet\n");
/* vkDestroySurfaceKHR must handle VK_NULL_HANDLE (0) for surface. */
if (!wine_vk_surface) return;
pvkDestroySurfaceKHR(instance, wine_vk_surface->host_surface, NULL /* allocator */);
wine_vk_surface_destroy(wine_vk_surface);
}