mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-11 08:39:28 +01:00
Merge pull request #10918 from unknownbrackets/vulkan-shutdown
Vulkan: Fix shutdown crash when device lost called
This commit is contained in:
1 file changed
+5
-2
@@ -481,8 +481,11 @@ void GPU_Vulkan::DestroyDeviceObjects() {
|
||||
}
|
||||
|
||||
// Need to turn off hacks when shutting down the GPU. Don't want them running in the menu.
|
||||
VulkanRenderManager *rm = (VulkanRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
|
||||
rm->GetQueueRunner()->EnableHacks(0);
|
||||
if (draw_) {
|
||||
VulkanRenderManager *rm = (VulkanRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
|
||||
if (rm)
|
||||
rm->GetQueueRunner()->EnableHacks(0);
|
||||
}
|
||||
}
|
||||
|
||||
void GPU_Vulkan::DeviceLost() {
|
||||
|
||||
Reference in new issue
Block a user