Commit 630d7943 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winewayland: Remove unnecessary vkDestroySurfaceKHR NULL checks.

parent a3adb19b
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment