diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-20 22:18:04 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-10 15:28:11 -0700 |
| commit | 6ca7e2856bd704a687e8408bf7ed92b23672c7fa (patch) | |
| tree | 44cb8454446e47555437543a069a106b8295e3f9 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | b5f7a508742671410c44fc6f0e66d0ce789c3b57 (diff) | |
Modernize `std::find` with ranges
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index b99533eb02..a624734d60 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -2814,7 +2814,7 @@ TextureCacheBase::InvalidateTexture(TexAddrCache::iterator iter, bool discard_pe // Xenoblade's sunset scene, where 35 copies are done per frame, and 25 of them are // copied to the same address, and can be skipped. ReleaseEFBCopyStagingTexture(std::move(entry->pending_efb_copy)); - auto pending_it = std::find(m_pending_efb_copies.begin(), m_pending_efb_copies.end(), entry); + auto pending_it = std::ranges::find(m_pending_efb_copies, entry); if (pending_it != m_pending_efb_copies.end()) m_pending_efb_copies.erase(pending_it); } |
