Merge pull request #17392 from hrydgard/misc-crash-fixes

Misc crash fixes from mystery thread
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-05-02 23:41:32 +02:00
commit 52b7bf502f
4 files changed
+9 -5

No files matched your search

+3
View File
@@ -182,6 +182,9 @@ void GPU_Vulkan::SaveCache(const Path &filename) {
}
GPU_Vulkan::~GPU_Vulkan() {
VulkanRenderManager *rm = (VulkanRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
rm->DrainCompileQueue();
SaveCache(shaderCachePath_);
// Note: We save the cache in DeviceLost
DestroyDeviceObjects();