mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Dont drop fonts with ENABLE_FREETYPE=0
This commit is contained in:
parent
d5ca3b721e
commit
587e7b299b
@ -121,7 +121,9 @@ GUIChatConsole::GUIChatConsole(
|
||||
|
||||
GUIChatConsole::~GUIChatConsole()
|
||||
{
|
||||
delete m_font;
|
||||
#if USE_FREETYPE
|
||||
m_font->drop();
|
||||
#endif
|
||||
}
|
||||
|
||||
void GUIChatConsole::openConsole(f32 height)
|
||||
|
@ -2145,7 +2145,9 @@ int main(int argc, char *argv[])
|
||||
*/
|
||||
device->drop();
|
||||
|
||||
delete font;
|
||||
#if USE_FREETYPE
|
||||
font->drop();
|
||||
#endif
|
||||
|
||||
#endif // !SERVER
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user