Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 9, 2005, 1:16:17 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: unloading of fonts now without a Warning from the ResourceManager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine/text_engine.cc

    r5357 r5515  
    8484    while( font != NULL)
    8585    {
    86       ResourceManager::getInstance()->unload(font, RP_GAME);
     86      if (likely(font != Font::getDefaultFont()))
     87        ResourceManager::getInstance()->unload(font, RP_GAME);
    8788      font = dynamic_cast<Font*>(fontIterator->nextElement());
    8889    }
Note: See TracChangeset for help on using the changeset viewer.