mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 08:13:34 +01:00
TexCache: Prevent lazy cache on video textures.
This commit is contained in:
1 parent
ff22dbc16c
commit
e2c7366c92
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user