diff options
author | LC <mathew1800@gmail.com> | 2020-07-17 11:19:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-17 11:19:20 +0200 |
commit | 9d3cbf6a908766070a00fcba208c9163968917b7 (patch) | |
tree | e713bd97b85c3a0c77a26c56f2788db65a37218a /src/video_core | |
parent | Merge pull request #4347 from lioncash/logging (diff) | |
parent | shader_cache: Make use of std::erase_if (diff) | |
download | yuzu-9d3cbf6a908766070a00fcba208c9163968917b7.tar yuzu-9d3cbf6a908766070a00fcba208c9163968917b7.tar.gz yuzu-9d3cbf6a908766070a00fcba208c9163968917b7.tar.bz2 yuzu-9d3cbf6a908766070a00fcba208c9163968917b7.tar.lz yuzu-9d3cbf6a908766070a00fcba208c9163968917b7.tar.xz yuzu-9d3cbf6a908766070a00fcba208c9163968917b7.tar.zst yuzu-9d3cbf6a908766070a00fcba208c9163968917b7.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/shader_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader_cache.h b/src/video_core/shader_cache.h index b7608fc7b..015a789d6 100644 --- a/src/video_core/shader_cache.h +++ b/src/video_core/shader_cache.h @@ -209,11 +209,11 @@ private: } // Remove them from the cache - const auto is_removed = [&removed_shaders](std::unique_ptr<T>& shader) { + const auto is_removed = [&removed_shaders](const std::unique_ptr<T>& shader) { return std::find(removed_shaders.begin(), removed_shaders.end(), shader.get()) != removed_shaders.end(); }; - storage.erase(std::remove_if(storage.begin(), storage.end(), is_removed), storage.end()); + std::erase_if(storage, is_removed); } /// @brief Creates a new entry in the lookup cache and returns its pointer |