Quellcode durchsuchen

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 vor 2 Jahren
Ursprung
Commit
d2e93cc185
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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) {
   _num_mipmap_levels_read = 0;
   _render_to_texture = copy._render_to_texture;
+  _post_load_store_cache = copy._post_load_store_cache;
 
   do_assign(&copy);