Vulkan: Wait for queue idle in DestroyBackbuffers.

Otherwise it's only done after destroying Draw, so no need to mutex.
This commit is contained in:
Unknown W. Brackets committed 2017-11-05 08:44:14 -08:00
1 parent efbba31608
commit ebe9dcafde
3 files changed
+2 -2

No files matched your search

-1
View File
@@ -228,7 +228,6 @@ void WindowsVulkanContext::SwapBuffers() {
}
void WindowsVulkanContext::Resize() {
g_Vulkan->WaitUntilQueueIdle();
draw_->HandleEvent(Draw::Event::LOST_BACKBUFFER, g_Vulkan->GetBackbufferWidth(), g_Vulkan->GetBackbufferHeight());
g_Vulkan->DestroyObjects();
-1
View File
@@ -341,7 +341,6 @@ void AndroidVulkanContext::SwapBuffers() {
}
void AndroidVulkanContext::Resize() {
g_Vulkan->WaitUntilQueueIdle();
draw_->HandleEvent(Draw::Event::LOST_BACKBUFFER, g_Vulkan->GetBackbufferWidth(), g_Vulkan->GetBackbufferHeight());
g_Vulkan->DestroyObjects();
@@ -218,6 +218,8 @@ void VulkanRenderManager::DestroyBackbuffers() {
}
thread_.join();
}
vulkan_->WaitUntilQueueIdle();
VkDevice device = vulkan_->GetDevice();
for (uint32_t i = 0; i < swapchainImageCount_; i++) {
vulkan_->Delete().QueueDeleteImageView(swapchainImages_[i].view);