From d2e93cc185ff9990e40c0da124250364d3cc2cd1 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 25 May 2023 13:55:22 +0200 Subject: [PATCH] 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 --- panda/src/gobj/texture.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/panda/src/gobj/texture.cxx b/panda/src/gobj/texture.cxx index 7edced0507..99c5d10c02 100644 --- a/panda/src/gobj/texture.cxx +++ b/panda/src/gobj/texture.cxx @@ -10711,6 +10711,7 @@ Texture::CData:: CData(const Texture::CData ©) { _num_mipmap_levels_read = 0; _render_to_texture = copy._render_to_texture; + _post_load_store_cache = copy._post_load_store_cache; do_assign(©);