diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-28 22:33:13 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-10 00:53:48 -0700 |
| commit | 88a1a5b4f2d63b96d47a6fd31a2bab89d50d701e (patch) | |
| tree | bdaa2ad8760f6d71a3ec6ee665d84451643a8a8e /Source/Core/VideoBackends | |
| parent | 728663bdc03dfe20343c45ff36f5fb080b49ffec (diff) | |
Modernize `std::set_intersection` with ranges
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/OGLConfig.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLConfig.cpp b/Source/Core/VideoBackends/OGL/OGLConfig.cpp index f53d38645b..4b1e5308a2 100644 --- a/Source/Core/VideoBackends/OGL/OGLConfig.cpp +++ b/Source/Core/VideoBackends/OGL/OGLConfig.cpp @@ -631,10 +631,10 @@ bool PopulateConfig(GLContext* m_main_gl_context) g_Config.backend_info.AAModes.clear(); g_Config.backend_info.AAModes.reserve(std::min(color_aa_modes.size(), depth_aa_modes.size())); // We only want AA modes that are supported for both the color and depth textures. Probably - // the support is the same, though. rbegin/rend are used to swap the order ahead of time. - std::set_intersection(color_aa_modes.rbegin(), color_aa_modes.rend(), depth_aa_modes.rbegin(), - depth_aa_modes.rend(), - std::back_inserter(g_Config.backend_info.AAModes)); + // the support is the same, though. views::reverse is used to swap the order ahead of time. + std::ranges::set_intersection(color_aa_modes | std::views::reverse, + depth_aa_modes | std::views::reverse, + std::back_inserter(g_Config.backend_info.AAModes)); } else { |
