Skip to content

Commit

Permalink
Fix for crash when changing backends in-game
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 25, 2023
1 parent fae186b commit 01035f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GPU/Vulkan/ShaderManagerVulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,12 @@ ShaderManagerVulkan::ShaderManagerVulkan(Draw::DrawContext *draw)
}

ShaderManagerVulkan::~ShaderManagerVulkan() {
ClearShaders();
Clear();
delete[] codeBuffer_;
}

void ShaderManagerVulkan::DeviceLost() {
Clear();
draw_ = nullptr;
}

Expand Down

0 comments on commit 01035f4

Please sign in to comment.