font reloading for real this time

This commit is contained in:
AJ Kelly
2011-02-17 15:00:58 -06:00
parent 69491c7ccb
commit 8283a5bdda
2 changed files with 5 additions and 6 deletions
+1 -3
View File
@@ -54,8 +54,7 @@ Font* FontManager::LoadFont( const RString &sFontOrTextureFilePath, RString sCha
if( p != g_mapPathToFont.end() )
{
pFont=p->second;
// reload in case metrics may have changed
pFont->Load(sFontOrTextureFilePath, sChars);
pFont->m_iRefCount++;
}
else {
pFont= new Font;
@@ -63,7 +62,6 @@ Font* FontManager::LoadFont( const RString &sFontOrTextureFilePath, RString sCha
g_mapPathToFont[NewName] = pFont;
}
pFont->m_iRefCount++;
return pFont;
}