Video Common: Avoid 'presenting' duplicate frames by detecting when swap

hasn't changed since the last frame
This commit is contained in:
iwubcode
2017-08-20 14:24:37 -05:00
parent c58010404d
commit e6d85b0915
4 changed files with 6 additions and 3 deletions

View File

@ -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;
}