mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-19 21:58:42 +00:00
winex11: Remove unnecessary vkDestroySurfaceKHR NULL checks.
This commit is contained in:
parent
0dd1502f57
commit
e3e628247d
|
@ -371,13 +371,8 @@ static void X11DRV_vkDestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface
|
||||||
if (allocator)
|
if (allocator)
|
||||||
FIXME("Support for allocation callbacks not implemented yet\n");
|
FIXME("Support for allocation callbacks not implemented yet\n");
|
||||||
|
|
||||||
/* vkDestroySurfaceKHR must handle VK_NULL_HANDLE (0) for surface. */
|
|
||||||
if (x11_surface)
|
|
||||||
{
|
|
||||||
pvkDestroySurfaceKHR( instance, x11_surface->host_surface, NULL /* allocator */ );
|
pvkDestroySurfaceKHR( instance, x11_surface->host_surface, NULL /* allocator */ );
|
||||||
|
|
||||||
wine_vk_surface_release(x11_surface);
|
wine_vk_surface_release(x11_surface);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void X11DRV_vkDestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain,
|
static void X11DRV_vkDestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain,
|
||||||
|
|
Loading…
Reference in a new issue