mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Fix for crash when changing backends in-game
This commit is contained in:
parent
fae186bba6
commit
01035f48a4
@ -224,11 +224,12 @@ ShaderManagerVulkan::ShaderManagerVulkan(Draw::DrawContext *draw)
|
||||
}
|
||||
|
||||
ShaderManagerVulkan::~ShaderManagerVulkan() {
|
||||
ClearShaders();
|
||||
Clear();
|
||||
delete[] codeBuffer_;
|
||||
}
|
||||
|
||||
void ShaderManagerVulkan::DeviceLost() {
|
||||
Clear();
|
||||
draw_ = nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user