diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2016-04-09 18:10:20 +0200 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2016-04-09 18:10:20 +0200 |
| commit | e98fb0af84f2cb65636240d282b6a074f939ea4f (patch) | |
| tree | c905ca91d259a9ef66fbc97420478f748f475d3f /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 94098a50c2a6c6eb76ed27b5ea9e5f9b69a459bc (diff) | |
| parent | 2dd9e6bfe22135277d9a76f175784a6e6d0f6bef (diff) | |
Merge pull request #3752 from mimimi085181/remove-use-only-once-restriction-partial-updates
Remove the restriction to use efb copies only once as partial update
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 456883bc8d..1503b2461b 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -309,7 +309,6 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::DoPartialTextureUpdates(Tex if (entry != entry_to_update && entry->IsEfbCopy() && entry->OverlapsMemoryRange(entry_to_update->addr, entry_to_update->size_in_bytes) - && entry->frameCount == FRAMECOUNT_INVALID && entry->memory_stride == numBlocksX * block_size) { if (entry->hash == entry->CalculateHash()) @@ -368,8 +367,8 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::DoPartialTextureUpdates(Tex dstrect.right = (dst_x + copy_width); dstrect.bottom = (dst_y + copy_height); entry_to_update->CopyRectangleFromTexture(entry, srcrect, dstrect); - // Mark the texture update as used, so it isn't applied more than once - entry->frameCount = frameCount; + // Mark the texture update as used, as if it was loaded directly + entry->frameCount = FRAMECOUNT_INVALID; } else { |
