Minor bug fix.

--HG--
branch : dev-font
This commit is contained in:
Martí­n Lucas Golini
2017-03-13 02:27:44 -03:00
parent e562e9bac6
commit 31f3b5e739
2 changed files with 3 additions and 3 deletions

View File

@@ -633,7 +633,7 @@ FontTrueType::Page::Page() :
}
FontTrueType::Page::~Page() {
if ( NULL != texture )
if ( NULL != texture && TextureFactory::existsSingleton() )
TextureFactory::instance()->remove( texture->getId() );
}

View File

@@ -53,12 +53,12 @@ Engine::~Engine() {
GlobalBatchRenderer::destroySingleton();
TextureFactory::destroySingleton();
TextureAtlasManager::destroySingleton();
FontManager::destroySingleton();
TextureFactory::destroySingleton();
UI::UIManager::destroySingleton();
Graphics::cGL::destroySingleton();