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

Discussion area about developing with Ogre2 branches (2.1, 2.2 and beyond)
Post Reply
rujialiu
Goblin
Posts: 224
Joined: Mon May 09, 2016 8:21 am
x 20

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

Post by rujialiu » Wed Mar 06, 2019 2:57 am

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.
0 x

Post Reply