diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-08-15 14:20:16 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-08-15 14:20:16 -0700 |
| commit | 9fa4eb9aab4790ab370c92790de4f001eb50871e (patch) | |
| tree | 5bffa4209a5cf95ef4e77cb49c0aa77cb458c141 /Source/Core/VideoCommon/ShaderCache.cpp | |
| parent | 18ac8bf4055093d5aece0e631d04e4d38ec8f0c6 (diff) | |
Use 'contains' method
Diffstat (limited to 'Source/Core/VideoCommon/ShaderCache.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/ShaderCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/ShaderCache.cpp b/Source/Core/VideoCommon/ShaderCache.cpp index ca409777ce..587ee3cc7f 100644 --- a/Source/Core/VideoCommon/ShaderCache.cpp +++ b/Source/Core/VideoCommon/ShaderCache.cpp @@ -290,7 +290,7 @@ void ShaderCache::LoadPipelineCache(T& cache, Common::LinearDiskCache<DiskKeyTyp UnserializePipelineUid(key, real_uid); // Skip those which are already compiled. - if (failed || cache.find(real_uid) != cache.end()) + if (failed || cache.contains(real_uid)) return; auto config = this_ptr->GetGXPipelineConfig(real_uid); |
