Browse Source

mark dirty on read()

David Rose 17 years ago
parent
commit
95ce87293d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/gobj/texture.I

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

@@ -251,6 +251,8 @@ INLINE bool Texture::
 load(const PNMImage &pnmimage) {
 load(const PNMImage &pnmimage) {
   MutexHolder holder(_lock);
   MutexHolder holder(_lock);
   do_clear();
   do_clear();
+  ++_properties_modified;
+  ++_image_modified;
   return do_load_one(pnmimage, get_name(), 0, 0);
   return do_load_one(pnmimage, get_name(), 0, 0);
 }
 }