summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2024-08-14 23:54:16 +0100
committerGitHub <noreply@github.com>2024-08-14 23:54:16 +0100
commit18ac8bf4055093d5aece0e631d04e4d38ec8f0c6 (patch)
tree44fe8038aada312f60396c18053e2bd04f564619 /Source/Core/VideoCommon/TextureCacheBase.cpp
parent1e8b3a58b2ef312e0904d7fbb2a37efaee96dc8f (diff)
parent618b41a4593032a5c374069b37369e91ecf5db9e (diff)
Merge pull request #12990 from tygyh/Use-contains-method
Use 'contains' method
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index 5ef7d3fc98..b99533eb02 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -665,7 +665,7 @@ void TextureCacheBase::DoSaveState(PointerWrap& p)
auto refpair1 = std::make_pair(*id1, *id2);
auto refpair2 = std::make_pair(*id2, *id1);
- if (reference_pairs.count(refpair1) == 0 && reference_pairs.count(refpair2) == 0)
+ if (!reference_pairs.contains(refpair1) && !reference_pairs.contains(refpair2))
reference_pairs.insert(refpair1);
}
}
@@ -854,7 +854,7 @@ RcTcacheEntry TextureCacheBase::DoPartialTextureUpdates(RcTcacheEntry& entry_to_
{
auto& entry = iter.first->second;
if (entry != entry_to_update && entry->IsCopy() &&
- entry->references.count(entry_to_update.get()) == 0 &&
+ !entry->references.contains(entry_to_update.get()) &&
entry->OverlapsMemoryRange(entry_to_update->addr, entry_to_update->size_in_bytes) &&
entry->memory_stride == numBlocksX * block_size)
{