From f0e739b69e1233e492d4476ed57ea753692823d8 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 15 Feb 2011 12:19:33 +0200 Subject: [PATCH] smgr->drop() is now used in tile.cpp --- src/tile.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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); -- 2.30.2