From: Perttu Ahola Date: Tue, 15 Feb 2011 10:19:33 +0000 (+0200) Subject: smgr->drop() is now used in tile.cpp X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=f0e739b69e1233e492d4476ed57ea753692823d8;p=zefram%2Fminetest%2Fminetest_engine.git smgr->drop() is now used in tile.cpp --- diff --git a/src/tile.cpp b/src/tile.cpp index 4a6523ac..1bf09caf 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -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);