Changeset 5515 in orxonox.OLD for trunk/src/lib/graphics/text_engine/text.cc
- Timestamp:
- Nov 9, 2005, 1:16:17 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/text.cc
r5420 r5515 49 49 Text::~Text() 50 50 { 51 if (this->font != NULL )51 if (this->font != NULL && this->font != Font::defaultFont) 52 52 ResourceManager::getInstance()->unload(this->font); 53 53 … … 89 89 90 90 // unloading the Font if we alrady have one loaded. 91 if (this->font != NULL )91 if (this->font != NULL && this->font != Font::defaultFont) 92 92 ResourceManager::getInstance()->unload(this->font); 93 93 this->font = NULL;
Note: See TracChangeset
for help on using the changeset viewer.