aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tile.cpp11
1 files changed, 6 insertions, 5 deletions
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);