fix date-dependency in texture cache

This commit is contained in:
David Rose 2009-01-30 02:27:58 +00:00
parent 3fcf0d4c8f
commit 3697996845
1 changed files with 3 additions and 0 deletions

View File

@ -3003,6 +3003,9 @@ do_reload_ram_image(bool allow_compression) {
if (do_has_ram_image() && record != (BamCacheRecord *)NULL) {
if (cache->get_cache_textures() || (_ram_image_compression != CM_off && cache->get_cache_compressed_textures())) {
// Update the cache.
if (record != (BamCacheRecord *)NULL) {
record->add_dependent_file(_fullpath);
}
record->set_data(this, false);
cache->store(record);
}