I'm using OGRE and I'm removing all default resource groups and create my own.
Code: Select all
Ogre::ResourceGroupManager::getSingleton().destroyResourceGroup("General");
While adding CEGUI support to the application, I ran across a minor issue.
I've set the default resource group to something:
Code: Select all
std::string guiResourceGroup ("GeneralGUI");
ceguiSysPtr_->getResourceProvider()->setDefaultResourceGroup (guiResourceGroup);
But when I create the scheme, this seems to be ignored and the missing "General" group causes a crash. I found this looking in the file
cegui\src\RendererModules\Ogre\CEGUIOgreTexture.cpp, line ~142:
Code: Select all
// try to create a Ogre::Texture from the input data
d_texture = TextureManager::getSingleton().loadRawData(
getUniqueName(), "General", odc,
buffer_size.d_width, buffer_size.d_height,
target_fmt, TEX_TYPE_2D, 0, 1.0f);
So this forces me to use the "General" resource group. Is this a bug, or a documented limitation ? (I couldn't find anything related to this in the resource providers documentation)
Edit: If I don't delete the "General" resource group, I don't get any issues.
Thanks for taking the time to read this!

