smgr->drop() is now used in tile.cpp

This commit is contained in:
Perttu Ahola 2011-02-15 12:19:33 +02:00
parent 2684e620b5
commit f0e739b69e
1 changed files with 6 additions and 5 deletions

View File

@ -954,12 +954,13 @@ bool generate_image(std::string part_of_name, video::IImage *& baseimg,
smgr->drawAll();
driver->endScene();
// Drop scene
cube->drop();
// NOTE: The scene nodes should not be dropped, otherwise
// smgr->drop() segfaults
/*cube->drop();
camera->drop();
light->drop();
// Drop scene manager FIXME: Segfaults
//smgr->drop();
light->drop();*/
// Drop scene manager
smgr->drop();
// Unset render target
driver->setRenderTarget(0, true, true, 0);