mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 11:43:47 +01:00
Join the shader cache load thread on exit
This commit is contained in:
1 parent
9a515c851f
commit
dbd3045f87
3 files changed
+14
-2
No files matched your search
@@ -239,6 +239,8 @@ void ShaderManagerVulkan::DeviceRestore(Draw::DrawContext *draw) {
|
||||
}
|
||||
|
||||
void ShaderManagerVulkan::Clear() {
|
||||
std::lock_guard<std::mutex> guard(cacheLock_);
|
||||
|
||||
fsCache_.Iterate([&](const FShaderID &key, VulkanFragmentShader *shader) {
|
||||
delete shader;
|
||||
});
|
||||
@@ -397,6 +399,7 @@ void ShaderManagerVulkan::GetShaders(int prim, VertexDecoder *decoder, VulkanVer
|
||||
}
|
||||
|
||||
std::vector<std::string> ShaderManagerVulkan::DebugGetShaderIDs(DebugShaderType type) {
|
||||
std::lock_guard<std::mutex> guard(cacheLock_);
|
||||
std::vector<std::string> ids;
|
||||
switch (type) {
|
||||
case SHADER_TYPE_VERTEX:
|
||||
|
||||
Reference in new issue
Block a user