diff options
| author | JMC47 <JMC4789@gmail.com> | 2024-12-26 16:51:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-26 16:51:53 -0500 |
| commit | 532a8621daa5c0d8a3a55f64ffba9cb20209d455 (patch) | |
| tree | 21837ec63b1fe4a45a162a1f1bf4167efcd4d177 /Source/Core/VideoCommon/Assets/CustomAssetLibrary.cpp | |
| parent | f9ce2b9d764014ab59cf2c19e49c2c848604e6fc (diff) | |
| parent | 2b0cd16c8c266bc1e298e49d4009eab8c9c23f99 (diff) | |
Merge pull request #13116 from mitaclaw/ranges-modernization-8-trivial-of
Ranges Algorithms Modernization - Of
Diffstat (limited to 'Source/Core/VideoCommon/Assets/CustomAssetLibrary.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Assets/CustomAssetLibrary.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Assets/CustomAssetLibrary.cpp b/Source/Core/VideoCommon/Assets/CustomAssetLibrary.cpp index 4446f602e8..887875d2cb 100644 --- a/Source/Core/VideoCommon/Assets/CustomAssetLibrary.cpp +++ b/Source/Core/VideoCommon/Assets/CustomAssetLibrary.cpp @@ -69,10 +69,8 @@ CustomAssetLibrary::LoadInfo CustomAssetLibrary::LoadGameTexture(const AssetID& } // All levels have to have the same format. - if (std::any_of(slice.m_levels.begin(), slice.m_levels.end(), - [&first_mip](const VideoCommon::CustomTextureData::ArraySlice::Level& l) { - return l.format != first_mip.format; - })) + if (std::ranges::any_of(slice.m_levels, + [&first_mip](const auto& l) { return l.format != first_mip.format; })) { ERROR_LOG_FMT( VIDEO, "Custom game texture {} has inconsistent formats across mip levels for slice {}.", |
