Merge pull request #8723 from unknownbrackets/tex-replace

Avoid scheduling a rescale when scaling is off for the texture
This commit is contained in:
Henrik Rydgård committed 2016-05-07 09:37:42 +02:00
commit 98f2ceed59
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1254,7 +1254,7 @@ void TextureCacheVulkan::SetTexture(VulkanPushBuffer *uploadBuffer) {
// Don't scale the PPGe texture.
if (entry->addr > 0x05000000 && entry->addr < 0x08800000)
scaleFactor = 1;
if ((entry->status & TexCacheEntry::STATUS_CHANGE_FREQUENT) != 0) {
if ((entry->status & TexCacheEntry::STATUS_CHANGE_FREQUENT) != 0 && scaleFactor != 1) {
// Remember for later that we /wanted/ to scale this texture.
entry->status |= TexCacheEntry::STATUS_TO_SCALE;
scaleFactor = 1;