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.
This commit is contained in:
deflected 2016-09-08 21:30:42 +03:00 committed by rdb
parent 645d179227
commit abb6ee0542

View File

@ -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);