From abb6ee0542b24da8dc9147e2bb55022873c4122d Mon Sep 17 00:00:00 2001 From: deflected Date: Thu, 8 Sep 2016 21:30:42 +0300 Subject: [PATCH] gobj: Fixed wrong texture pool key for 2D texture arrays - 2D texture arrays are added to internal storage with specific unique name, so keep it as texture pool key instead of filename. --- panda/src/gobj/texturePool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/gobj/texturePool.cxx b/panda/src/gobj/texturePool.cxx index 4377767089..987e1947b5 100644 --- a/panda/src/gobj/texturePool.cxx +++ b/panda/src/gobj/texturePool.cxx @@ -772,7 +772,7 @@ ns_load_cube_map(const Filename &filename_pattern, bool read_mipmaps, nassertr(tex != (Texture *)NULL, NULL); tex->set_filename(filename_pattern); tex->set_fullpath(filename); - tex->_texture_pool_key = filename; + tex->_texture_pool_key = unique_filename; { MutexHolder holder(_lock);