From: Perttu Ahola Date: Tue, 15 Feb 2011 10:19:33 +0000 (+0200) Subject: smgr->drop() is now used in tile.cpp X-Git-Tag: 0.2.20110731_3~370 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f0e739b69e1233e492d4476ed57ea753692823d8;p=oweals%2Fminetest.git smgr->drop() is now used in tile.cpp --- diff --git a/src/tile.cpp b/src/tile.cpp index 4a6523aca..1bf09caff 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);