don't cache noncompressed textures inappropriately

This commit is contained in:
David Rose 2008-08-18 22:51:40 +00:00
parent 62466b266f
commit 9e9e1eeef7
1 changed files with 5 additions and 3 deletions

View File

@ -2883,9 +2883,11 @@ reload_ram_image() {
z, n, _has_read_pages, _has_read_mipmaps, false, NULL);
if (has_ram_image() && record != (BamCacheRecord *)NULL) {
// Update the cache.
record->set_data(this, false);
cache->store(record);
if (cache->get_cache_textures() || (get_ram_image_compression() != CM_off && cache->get_cache_compressed_textures())) {
// Update the cache.
record->set_data(this, false);
cache->store(record);
}
}
}