Page 1 of 1

[2.2] TextureGpuManager::saveTexture used wrong group name (with fix)

Posted: Wed Mar 06, 2019 2:57 am
by rujialiu
Hi!

In `void TextureGpuManager::saveTexture()` there is a typo:

Code: Select all

             try
             {
-                String resourceGroup = texture->getRealResourceNameStr();
+                String resourceGroup = texture->getResourceGroupStr();
                 if( resourceGroup.empty() )
                     resourceGroup = ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME;
I didn't find it earlier because we were loading everything via listeners which ignores resource group, but a recent change accidentally made a few resources uncaught by our listeners and loaded by Ogre.