mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix another possible Vulkan shutdown bug
This commit is contained in:
parent
bc959470e5
commit
5fff54e804
1 changed files with 5 additions and 3 deletions
|
@ -247,9 +247,11 @@ void DrawEngineVulkan::DestroyDeviceObjects() {
|
|||
delete nullTexture_;
|
||||
nullTexture_ = nullptr;
|
||||
}
|
||||
vertexCache_->Destroy(vulkan_);
|
||||
delete vertexCache_;
|
||||
vertexCache_ = 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…
Add table
Reference in a new issue