aboutsummaryrefslogtreecommitdiff
path: root/src/tile.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-15 12:19:33 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-15 12:19:33 +0200
commitf0e739b69e1233e492d4476ed57ea753692823d8 (patch)
treefc845022d3816075b82590e2ce4cb9697b252582 /src/tile.cpp
parent2684e620b5fe5d8c3e22c01b3d2f55b260f65501 (diff)
downloadminetest-f0e739b69e1233e492d4476ed57ea753692823d8.tar.gz
minetest-f0e739b69e1233e492d4476ed57ea753692823d8.tar.bz2
minetest-f0e739b69e1233e492d4476ed57ea753692823d8.zip
smgr->drop() is now used in tile.cpp
Diffstat (limited to 'src/tile.cpp')
-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);