Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5515 in orxonox.OLD for trunk/src/lib/graphics/text_engine/text.cc


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.cc

    r5420 r5515  
    4949Text::~Text()
    5050{
    51   if (this->font != NULL)
     51  if (this->font != NULL && this->font != Font::defaultFont)
    5252    ResourceManager::getInstance()->unload(this->font);
    5353
     
    8989
    9090  // unloading the Font if we alrady have one loaded.
    91   if (this->font != NULL)
     91  if (this->font != NULL && this->font != Font::defaultFont)
    9292    ResourceManager::getInstance()->unload(this->font);
    9393  this->font = NULL;
Note: See TracChangeset for help on using the changeset viewer.