Fix for crash when changing backends in-game

This commit is contained in:
Henrik Rydgård 2023-09-26 00:13:53 +02:00
parent fae186bba6
commit 01035f48a4

View File

@ -224,11 +224,12 @@ ShaderManagerVulkan::ShaderManagerVulkan(Draw::DrawContext *draw)
}
ShaderManagerVulkan::~ShaderManagerVulkan() {
ClearShaders();
Clear();
delete[] codeBuffer_;
}
void ShaderManagerVulkan::DeviceLost() {
Clear();
draw_ = nullptr;
}