ソースを参照

fix make_copy()

David Rose 16 年 前
コミット
b6ad665ef5
1 ファイル変更5 行追加1 行削除
  1. 5 1
      panda/src/gobj/texture.I

+ 5 - 1
panda/src/gobj/texture.I

@@ -29,7 +29,11 @@
 INLINE PT(Texture) Texture::
 make_copy() {
   MutexHolder holder(_lock);
-  return do_make_copy();
+  PT(Texture) tex = do_make_copy();
+  ++(tex->_properties_modified);
+  ++(tex->_image_modified);
+  ++(tex->_simple_image_modified);
+  return tex;
 }
 
 ////////////////////////////////////////////////////////////////////