mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Merge pull request #15156 from unknownbrackets/vulkan
Vulkan: Fix crash on shutdown after device lost
This commit is contained in:
commit
938e6d83cb
@ -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…
Reference in New Issue
Block a user