summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2017-08-20 14:24:37 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2017-11-17 22:11:31 -0600
commite6d85b0915681a3f8162d45468f2c488d6df8114 (patch)
tree82ca032aa84b209eeb6473c08537dda25708e0b6 /Source/Core/VideoCommon/TextureCacheBase.cpp
parentc58010404df570edffd948302e8bfe6c539c698d (diff)
Video Common: Avoid 'presenting' duplicate frames by detecting when swap
hasn't changed since the last frame
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index c6df251723..89fbb6ac59 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -1611,6 +1611,7 @@ TextureCacheBase::TCacheEntry* TextureCacheBase::AllocateCacheEntry(const Textur
}
TCacheEntry* cacheEntry = new TCacheEntry(std::move(texture));
cacheEntry->textures_by_hash_iter = textures_by_hash.end();
+ cacheEntry->id = last_entry_id++;
return cacheEntry;
}