Changeset 1039 for branches/Carsten_PtrWork2/Source/System/Statistics/Foregrounds/OSGStatisticsDefaultFont.cpp
- Timestamp:
- 01/16/08 16:07:40 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/System/Statistics/Foregrounds/OSGStatisticsDefaultFont.cpp
r1037 r1039 616 616 _texObjChunk->setMinFilter(GL_NEAREST); 617 617 _texObjChunk->setMagFilter(GL_NEAREST); 618 619 addPreFactoryExitFunction(&releaseTextFace); 618 620 } 619 621 … … 624 626 StatisticsDefaultFontBase::~StatisticsDefaultFontBase() 625 627 { 626 if (_texObjChunk != NullFC)627 subRef(_texObjChunk);628 628 if (_face != 0) 629 629 { … … 633 633 } 634 634 635 bool 636 StatisticsDefaultFontBase::releaseTextFace(void) 637 { 638 FDEBUG(("StatisticsDefaultFontBase::releaseTextFace:\n")); 639 640 StatisticsDefaultFont::the()->_texObjChunk.dump(); 641 642 OSG::subRef(StatisticsDefaultFont::the()->_face); 643 StatisticsDefaultFont::the()->_face = 0; 644 645 return true; 646 } 647 635 648 636 649 OSG_END_NAMESPACE
