mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Vulkan: Fix shutdown crash accidentally caused by #12324
This commit is contained in:
parent
c7798715a5
commit
e723594133
2 changed files with 3 additions and 1 deletions
|
@ -72,6 +72,7 @@ void DepalShaderCacheVulkan::DeviceLost() {
|
|||
if (vshader_) {
|
||||
vulkan2D_->PurgeVertexShader(vshader_);
|
||||
vulkan_->Delete().QueueDeleteShaderModule(vshader_);
|
||||
vshader_ = VK_NULL_HANDLE;
|
||||
}
|
||||
draw_ = nullptr;
|
||||
vulkan_ = nullptr;
|
||||
|
|
|
@ -172,9 +172,10 @@ GPU_Vulkan::~GPU_Vulkan() {
|
|||
// Note: We save the cache in DeviceLost
|
||||
DestroyDeviceObjects();
|
||||
framebufferManagerVulkan_->DestroyAllFBOs();
|
||||
vulkan2D_.Shutdown();
|
||||
depalShaderCache_.Clear();
|
||||
depalShaderCache_.DeviceLost();
|
||||
drawEngine_.DeviceLost();
|
||||
vulkan2D_.Shutdown();
|
||||
delete textureCacheVulkan_;
|
||||
delete pipelineManager_;
|
||||
delete shaderManagerVulkan_;
|
||||
|
|
Loading…
Add table
Reference in a new issue