TexCache: Check for videos rendered as slices.

In a few places, we were checking only the start address of the video.
This commit is contained in:
Unknown W. Brackets committed 2021-02-20 20:59:04 -08:00
1 parent dd980905a2
commit 557bf0d963
6 files changed
+35 -20

No files matched your search

+1 -1
View File
@@ -696,7 +696,7 @@ void TextureCacheGLES::LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &r
replacedInfo.cachekey = entry.CacheKey();
replacedInfo.hash = entry.fullhash;
replacedInfo.addr = entry.addr;
replacedInfo.isVideo = videos_.find(entry.addr & 0x3FFFFFFF) != videos_.end();
replacedInfo.isVideo = IsVideo(entry.addr);
replacedInfo.isFinal = (entry.status & TexCacheEntry::STATUS_TO_SCALE) == 0;
replacedInfo.scaleFactor = scaleFactor;
replacedInfo.fmt = FromDataFormat(dstFmt);