Changeset 5515 in orxonox.OLD for trunk/src/lib/graphics/text_engine
- Timestamp:
- Nov 9, 2005, 1:16:17 AM (19 years ago)
- Location:
- trunk/src/lib/graphics/text_engine
- Files:
-
- 3 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; -
trunk/src/lib/graphics/text_engine/text_engine.cc
r5357 r5515 84 84 while( font != NULL) 85 85 { 86 ResourceManager::getInstance()->unload(font, RP_GAME); 86 if (likely(font != Font::getDefaultFont())) 87 ResourceManager::getInstance()->unload(font, RP_GAME); 87 88 font = dynamic_cast<Font*>(fontIterator->nextElement()); 88 89 } -
trunk/src/lib/graphics/text_engine/text_engine.h
r5347 r5515 19 19 #include "base_object.h" 20 20 21 #include "vector.h"22 23 21 // FORWARD DECLARATION 24 class PNode;25 class Font;26 class Text;27 22 28 23 //! A singleton Class that operates as a Handler initializing FONTS.
Note: See TracChangeset
for help on using the changeset viewer.