1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Fix race preview texture not being destroyed properly (Fixes #2098)

This commit is contained in:
scrawl 2014-11-24 01:02:18 +01:00
parent c1e6b8608b
commit ada4e37556

View file

@ -162,6 +162,9 @@ namespace MWGui
void RaceDialog::close()
{
mPreviewImage->setImageTexture("");
const std::string textureName = "CharacterHeadPreview";
MyGUI::RenderManager::getInstance().destroyTexture(MyGUI::RenderManager::getInstance().getTexture(textureName));
mPreview.reset(NULL);
}