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

loadfix
scrawl 10 years ago
parent c1e6b8608b
commit ada4e37556

@ -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);
}

Loading…
Cancel
Save