don't cache noncompressed textures inappropriately
This commit is contained in:
parent
62466b266f
commit
9e9e1eeef7
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue