TexCache: Prevent lazy cache on video textures.

This commit is contained in:
Unknown W. Brackets committed 2021-09-19 07:31:31 -07:00
1 parent ff22dbc16c
commit e2c7366c92
1 file changed
+2 -2
+2 -2
View File
@@ -539,7 +539,7 @@ TexCacheEntry *TextureCacheCommon::SetTexture() {
if (PPGeIsFontTextureAddress(texaddr)) {
// It's the builtin font texture.
entry->status = TexCacheEntry::STATUS_RELIABLE;
} else if (g_Config.bTextureBackoffCache) {
} else if (g_Config.bTextureBackoffCache && !IsVideo(texaddr)) {
entry->status = TexCacheEntry::STATUS_HASHING;
} else {
entry->status = TexCacheEntry::STATUS_UNRELIABLE;
@@ -1731,7 +1731,7 @@ bool TextureCacheCommon::CheckFullHash(TexCacheEntry *entry, bool &doDelete) {
}
if (fullhash == entry->fullhash) {
if (g_Config.bTextureBackoffCache) {
if (g_Config.bTextureBackoffCache && !IsVideo(entry->addr)) {
if (entry->GetHashStatus() != TexCacheEntry::STATUS_HASHING && entry->numFrames > TexCacheEntry::FRAMES_REGAIN_TRUST) {
// Reset to STATUS_HASHING.
entry->SetHashStatus(TexCacheEntry::STATUS_HASHING);