|
|
@ -1619,7 +1619,7 @@ static void ImGui_ImplVulkan_SwapBuffers(ImGuiViewport* viewport, void*)
|
|
|
|
info.pSwapchains = &wd->Swapchain;
|
|
|
|
info.pSwapchains = &wd->Swapchain;
|
|
|
|
info.pImageIndices = &present_index;
|
|
|
|
info.pImageIndices = &present_index;
|
|
|
|
err = vkQueuePresentKHR(v->Queue, &info);
|
|
|
|
err = vkQueuePresentKHR(v->Queue, &info);
|
|
|
|
if (err == VK_ERROR_OUT_OF_DATE_KHR)
|
|
|
|
if (err == VK_ERROR_OUT_OF_DATE_KHR || err == VK_SUBOPTIMAL_KHR)
|
|
|
|
ImGui_ImplVulkanH_CreateOrResizeWindow(v->Instance, v->PhysicalDevice, v->Device, &data->Window, v->QueueFamily, v->Allocator, (int)viewport->Size.x, (int)viewport->Size.y, v->MinImageCount);
|
|
|
|
ImGui_ImplVulkanH_CreateOrResizeWindow(v->Instance, v->PhysicalDevice, v->Device, &data->Window, v->QueueFamily, v->Allocator, (int)viewport->Size.x, (int)viewport->Size.y, v->MinImageCount);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
check_vk_result(err);
|
|
|
|
check_vk_result(err);
|
|
|
|