Examples: GLFW+Vulkan, SDL+Vulkan: Fix for handling of minimized windows. (#3259)

This commit is contained in:
ocornut
2020-05-25 15:31:33 +02:00
parent 6b688561aa
commit a06eb83359
4 changed files with 29 additions and 16 deletions

View File

@ -999,6 +999,7 @@ void ImGui_ImplVulkanH_CreateWindowSwapChain(VkPhysicalDevice physical_device, V
{
VkResult err;
VkSwapchainKHR old_swapchain = wd->Swapchain;
wd->Swapchain = NULL;
err = vkDeviceWaitIdle(device);
check_vk_result(err);