Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5286 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Oct 6, 2005, 9:25:01 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed a bug in the deletion Process of NullElement2D. deleted list before entities that were stored in the lists… stupid me…

Location:
trunk/src/lib/graphics
Files:
3 edited

Legend:

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

    r5285 r5286  
    8484
    8585  delete Render2D::getInstance();
     86  //TextEngine
    8687  delete TextEngine::getInstance();
    8788
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r5285 r5286  
    3535{
    3636  this->init();
    37 
    3837  this->setParent2D(NullElement2D::getInstance());
    39   NullElement2D::getInstance()->debug(0);
    4038}
    4139
     
    5149  this->init();
    5250
     51  // check Parenting, and if ok parent the stuff
    5352  if (this->parent != NULL)
    5453    this->setParent2D(parent);
  • trunk/src/lib/graphics/render2D/render_2d.cc

    r5117 r5286  
    5151Render2D::~Render2D ()
    5252{
     53  delete NullElement2D::getInstance();
     54
    5355  for (int i = 0; i < E2D_LAYER_COUNT; i++)
    5456    delete this->element2DList[i];
    5557
    56   delete NullElement2D::getInstance();
    5758  Render2D::singletonRef = NULL;
    5859}
Note: See TracChangeset for help on using the changeset viewer.