瀏覽代碼

fix reload

David Rose 17 年之前
父節點
當前提交
ec66c3cb10
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      panda/src/gobj/texture.cxx

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

@@ -3020,6 +3020,8 @@ do_reload_ram_image(bool allow_compression) {
     n = _num_mipmap_levels_read;
   }
 
+  _loaded_from_image = false;
+
   LoaderOptions options;
   options.set_texture_flags(LoaderOptions::TF_preload);
   do_read(_fullpath, _alpha_fullpath,