Fix deferred texture scaling when GPU texture scaling is used. This partially broke GPU texture scaling partially on many mobile devices.

This commit is contained in:
Henrik Rydgård
2026-04-07 11:36:59 -06:00
parent 20db5c4b2b
commit 7f53eeff08
+1 -1
View File
@@ -544,7 +544,7 @@ TexCacheEntry *TextureCacheCommon::SetTexture() {
}
}
if (match && (entry->status & TexCacheEntry::STATUS_TO_SCALE) && standardScaleFactor_ != 1 && texelsScaledThisFrame_ < TEXCACHE_MAX_TEXELS_SCALED) {
if (match && (entry->status & TexCacheEntry::STATUS_TO_SCALE) && (standardScaleFactor_ > 1 || shaderScaleFactor_ > 1) && texelsScaledThisFrame_ < TEXCACHE_MAX_TEXELS_SCALED) {
if ((entry->status & TexCacheEntry::STATUS_CHANGE_FREQUENT) == 0) {
// INFO_LOG(Log::G3D, "Reloading texture to do the scaling we skipped..");
match = false;