Fix crashes on exit (Vulkan). Should help #13223

This commit is contained in:
Henrik Rydgård committed 2020-11-09 11:13:44 +01:00
1 parent 50619af71d
commit 669c18a088
1 file changed
+6 -2
+6 -2
View File
@@ -2270,8 +2270,12 @@ void FramebufferManagerCommon::DeviceLost() {
}
}
}
reinterpretSampler_->Release();
reinterpretVS_->Release();
if (reinterpretSampler_) {
reinterpretSampler_->Release();
}
if (reinterpretVS_) {
reinterpretVS_->Release();
}
presentation_->DeviceLost();
draw_ = nullptr;
}