Browse Source

gobj: Fix post_load_store_cache field being uninitialized on cycle

This is randomly causing textures to be downloaded, which can be a significant performance drain
rdb 2 years ago
parent
commit
d2e93cc185
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/gobj/texture.cxx

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

@@ -10711,6 +10711,7 @@ Texture::CData::
 CData(const Texture::CData &copy) {
 CData(const Texture::CData &copy) {
   _num_mipmap_levels_read = 0;
   _num_mipmap_levels_read = 0;
   _render_to_texture = copy._render_to_texture;
   _render_to_texture = copy._render_to_texture;
+  _post_load_store_cache = copy._post_load_store_cache;
 
 
   do_assign(&copy);
   do_assign(&copy);