Browse Source

fix date-dependency in texture cache

David Rose 17 years ago
parent
commit
3697996845
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/gobj/texture.cxx

+ 3 - 0
panda/src/gobj/texture.cxx

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