mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-28 07:50:49 +00:00
Fix another possible Vulkan shutdown bug
This commit is contained in:
parent
bc959470e5
commit
5fff54e804
@ -247,9 +247,11 @@ void DrawEngineVulkan::DestroyDeviceObjects() {
|
||||
delete nullTexture_;
|
||||
nullTexture_ = nullptr;
|
||||
}
|
||||
if (vertexCache_) {
|
||||
vertexCache_->Destroy(vulkan_);
|
||||
delete vertexCache_;
|
||||
vertexCache_ = nullptr;
|
||||
}
|
||||
// Need to clear this to get rid of all remaining references to the dead buffers.
|
||||
vai_.Iterate([](uint32_t hash, VertexArrayInfoVulkan *vai) {
|
||||
delete vai;
|
||||
|
Loading…
Reference in New Issue
Block a user