mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 18:32:36 +00:00
Fix race preview texture not being destroyed properly (Fixes #2098)
This commit is contained in:
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…
x
Reference in New Issue
Block a user