mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 10:13:43 +01:00
Don't forget a tex is unreliable until decimate.
This commit is contained in:
1 parent
ca943f070c
commit
8a715f7b67
1 file changed
+5
-1
@@ -788,16 +788,20 @@ void TextureCache::SetTexture() {
|
||||
} else {
|
||||
INFO_LOG(G3D, "Texture different or overwritten, reloading at %08x", texaddr);
|
||||
glDeleteTextures(1, &entry->texture);
|
||||
if (entry->status == TexCacheEntry::STATUS_RELIABLE) {
|
||||
entry->status = TexCacheEntry::STATUS_HASHING;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
INFO_LOG(G3D,"No texture in cache, decoding...");
|
||||
TexCacheEntry entryNew = {0};
|
||||
cache[cachekey] = entryNew;
|
||||
|
||||
entry = &cache[cachekey];
|
||||
entry->status = TexCacheEntry::STATUS_HASHING;
|
||||
}
|
||||
|
||||
//we have to decode it
|
||||
entry->status = TexCacheEntry::STATUS_HASHING;
|
||||
entry->addr = texaddr;
|
||||
entry->hash = texhash;
|
||||
entry->format = format;
|
||||
|
||||
Reference in new issue
Block a user