Cleanup log output on swapchain/surface recreation.

This commit is contained in:
Henrik Rydgård committed 2020-07-18 20:35:39 +02:00
1 parent 6e6cac6b9b
commit 697c3b8b36
7 files changed
+91 -60

No files matched your search

+3 -5
View File
@@ -173,12 +173,10 @@ void WindowsVulkanContext::Shutdown() {
void WindowsVulkanContext::Resize() {
draw_->HandleEvent(Draw::Event::LOST_BACKBUFFER, g_Vulkan->GetBackbufferWidth(), g_Vulkan->GetBackbufferHeight());
g_Vulkan->DestroyObjects();
g_Vulkan->DestroySwapchain();
g_Vulkan->UpdateFlags(FlagsFromConfig());
g_Vulkan->ReinitSurface();
g_Vulkan->InitObjects();
g_Vulkan_->ReinitSurface();
g_Vulkan_->InitSwapchain();
draw_->HandleEvent(Draw::Event::GOT_BACKBUFFER, g_Vulkan->GetBackbufferWidth(), g_Vulkan->GetBackbufferHeight());
}