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:
parent
c1e6b8608b
commit
ada4e37556
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue