summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-01-01 14:42:44 -0500
committerGitHub <noreply@github.com>2025-01-01 14:42:44 -0500
commitf15a78ed380c696764068905cf823984a2a488e1 (patch)
treed365937dd6e3293d17a25045c5e389aa0f233dc3 /Source/Core/VideoCommon/VertexManagerBase.cpp
parentb8921b133826a19603997737719aa8d7f4b3e7d3 (diff)
parent527841f1df2f4411a1f64ae439275cedcfc13bfa (diff)
Merge pull request #13094 from mitaclaw/ranges-modernization-5-contains
Ranges Algorithms Modernization - Contains
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp
index b53cb3d2ed..21e5905d95 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/VertexManagerBase.cpp
@@ -9,6 +9,7 @@
#include "Common/ChunkFile.h"
#include "Common/CommonTypes.h"
+#include "Common/Contains.h"
#include "Common/EnumMap.h"
#include "Common/Logging/Log.h"
#include "Common/MathUtil.h"
@@ -585,8 +586,7 @@ void VertexManagerBase::Flush()
const auto cache_entry = g_texture_cache->Load(TextureInfo::FromStage(i));
if (cache_entry)
{
- if (std::find(texture_names.begin(), texture_names.end(),
- cache_entry->texture_info_name) == texture_names.end())
+ if (!Common::Contains(texture_names, cache_entry->texture_info_name))
{
texture_names.push_back(cache_entry->texture_info_name);
texture_units.push_back(i);