mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 00:33:34 +01:00
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:
1 parent
efbba31608
commit
ebe9dcafde
3 files changed
+2
-2
No files matched your search
@@ -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();
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user