Don't forget a tex is unreliable until decimate.

This commit is contained in:
Unknown W. Brackets 2013-02-10 14:25:44 -08:00
parent ca943f070c
commit 8a715f7b67

View File

@ -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;