mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Remove unused Gui::FontLoader::mTextures
This commit is contained in:
parent
036937ee02
commit
5f800279ac
@ -177,10 +177,6 @@ namespace Gui
|
||||
Log(Debug::Error) << "Error in the FontLoader destructor: " << e.what();
|
||||
}
|
||||
|
||||
for (std::vector<MyGUI::ITexture*>::iterator it = mTextures.begin(); it != mTextures.end(); ++it)
|
||||
delete *it;
|
||||
mTextures.clear();
|
||||
|
||||
for (std::vector<MyGUI::ResourceManualFont*>::iterator it = mFonts.begin(); it != mFonts.end(); ++it)
|
||||
{
|
||||
try
|
||||
@ -318,15 +314,6 @@ namespace Gui
|
||||
memcpy(texData, &textureData[0], textureData.size());
|
||||
tex->unlock();
|
||||
|
||||
// Using ResourceManualFont::setTexture, enable for MyGUI 3.2.3
|
||||
/*
|
||||
osg::ref_ptr<osg::Texture2D> texture = new osg::Texture2D;
|
||||
texture->setImage(image);
|
||||
osgMyGUI::OSGTexture* myguiTex = new osgMyGUI::OSGTexture(texture);
|
||||
mTextures.push_back(myguiTex);
|
||||
font->setTexture(myguiTex);
|
||||
*/
|
||||
|
||||
// We need to emulate loading from XML because the data members are private as of mygui 3.2.0
|
||||
MyGUI::xml::Document xmlDocument;
|
||||
MyGUI::xml::ElementPtr root = xmlDocument.createRoot("ResourceManualFont");
|
||||
|
@ -43,7 +43,6 @@ namespace Gui
|
||||
int mFontHeight;
|
||||
float mScalingFactor;
|
||||
|
||||
std::vector<MyGUI::ITexture*> mTextures;
|
||||
std::vector<MyGUI::ResourceManualFont*> mFonts;
|
||||
|
||||
std::string getInternalFontName(const std::string& name);
|
||||
|
Loading…
Reference in New Issue
Block a user