Dont drop fonts with ENABLE_FREETYPE=0

pull/727/head
PilzAdam 2013-05-16 02:19:32 +02:00
parent d5ca3b721e
commit 587e7b299b
2 changed files with 6 additions and 2 deletions

View File

@ -121,7 +121,9 @@ GUIChatConsole::GUIChatConsole(
GUIChatConsole::~GUIChatConsole()
{
delete m_font;
#if USE_FREETYPE
m_font->drop();
#endif
}
void GUIChatConsole::openConsole(f32 height)

View File

@ -2145,7 +2145,9 @@ int main(int argc, char *argv[])
*/
device->drop();
delete font;
#if USE_FREETYPE
font->drop();
#endif
#endif // !SERVER