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

winemac: Remove unnecessary vkDestroySurfaceKHR NULL checks.

This commit is contained in:
Rémi Bernon 2024-02-24 13:17:46 +01:00 committed by Alexandre Julliard
parent e3e628247d
commit a3adb19bef

View file

@ -178,10 +178,6 @@ static VkResult wine_vk_instance_convert_create_info(const VkInstanceCreateInfo
static void wine_vk_surface_destroy(VkInstance instance, struct wine_vk_surface *surface)
{
/* vkDestroySurfaceKHR must handle VK_NULL_HANDLE (0) for surface. */
if (!surface)
return;
pvkDestroySurfaceKHR(instance, surface->host_surface, NULL /* allocator */);
if (surface->view)