diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-01-01 14:42:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-01 14:42:44 -0500 |
| commit | f15a78ed380c696764068905cf823984a2a488e1 (patch) | |
| tree | d365937dd6e3293d17a25045c5e389aa0f233dc3 /Source/Core/VideoCommon/VideoConfig.cpp | |
| parent | b8921b133826a19603997737719aa8d7f4b3e7d3 (diff) | |
| parent | 527841f1df2f4411a1f64ae439275cedcfc13bfa (diff) | |
Merge pull request #13094 from mitaclaw/ranges-modernization-5-contains
Ranges Algorithms Modernization - Contains
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index 8ca1f4ec63..9c73608b22 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -7,6 +7,7 @@ #include "Common/CPUDetect.h" #include "Common/CommonTypes.h" +#include "Common/Contains.h" #include "Common/StringUtil.h" #include "Core/CPUThreadConfigCallback.h" @@ -213,8 +214,7 @@ void VideoConfig::VerifyValidity() if (iAdapter < 0 || iAdapter > ((int)backend_info.Adapters.size() - 1)) iAdapter = 0; - if (std::find(backend_info.AAModes.begin(), backend_info.AAModes.end(), iMultisamples) == - backend_info.AAModes.end()) + if (!Common::Contains(backend_info.AAModes, iMultisamples)) iMultisamples = 1; if (stereo_mode != StereoMode::Off) |
