mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-04 04:07:08 +00:00
Vulkan: Fix crash on shutdown after device lost.
This happens in SDL every time, apparently.
This commit is contained in:
parent
20c3c8f291
commit
f7a029c61f
@ -511,9 +511,9 @@ void GPU_Vulkan::InitDeviceObjects() {
|
||||
|
||||
void GPU_Vulkan::DestroyDeviceObjects() {
|
||||
INFO_LOG(G3D, "GPU_Vulkan::DestroyDeviceObjects");
|
||||
VulkanContext *vulkan = (VulkanContext *)draw_->GetNativeObject(Draw::NativeObject::CONTEXT);
|
||||
for (int i = 0; i < VulkanContext::MAX_INFLIGHT_FRAMES; i++) {
|
||||
if (frameData_[i].push_) {
|
||||
VulkanContext *vulkan = (VulkanContext *)draw_->GetNativeObject(Draw::NativeObject::CONTEXT);
|
||||
frameData_[i].push_->Destroy(vulkan);
|
||||
delete frameData_[i].push_;
|
||||
frameData_[i].push_ = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user