Skip to content
Permalink
Browse files

Vulkan: Fix shutdown crash accidentally caused by #12324

  • Loading branch information...
hrydgard committed Sep 17, 2019
1 parent c779871 commit e7235941331efbd188093a7b3b2f52dd2521ee57
Showing with 3 additions and 1 deletion.
  1. +1 −0 GPU/Vulkan/DepalettizeShaderVulkan.cpp
  2. +2 −1 GPU/Vulkan/GPU_Vulkan.cpp
@@ -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_;

0 comments on commit e723594

Please sign in to comment.
You can’t perform that action at this time.