Skip to content

Commit

Permalink
Fix crashes on exit (Vulkan). Should help #13223
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Nov 9, 2020
1 parent 50619af commit 669c18a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions GPU/Common/FramebufferManagerCommon.cpp
Expand Up @@ -2270,8 +2270,12 @@ void FramebufferManagerCommon::DeviceLost() {
}
}
}
reinterpretSampler_->Release();
reinterpretVS_->Release();
if (reinterpretSampler_) {
reinterpretSampler_->Release();
}
if (reinterpretVS_) {
reinterpretVS_->Release();
}
presentation_->DeviceLost();
draw_ = nullptr;
}
Expand Down

0 comments on commit 669c18a

Please sign in to comment.