smgr->drop() is now used in tile.cpp
authorPerttu Ahola <celeron55@gmail.com>
Tue, 15 Feb 2011 10:19:33 +0000 (12:19 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 15 Feb 2011 10:19:33 +0000 (12:19 +0200)
src/tile.cpp

index 4a6523aca5d255a9174ea6d2e6b4817ffc77d16d..1bf09caffddda46b5fddffb90b7c97c284c1b82c 100644 (file)
@@ -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);