projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2684e62
)
smgr->drop() is now used in tile.cpp
author
Perttu Ahola
<celeron55@gmail.com>
Tue, 15 Feb 2011 10:19:33 +0000
(12:19 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 15 Feb 2011 10:19:33 +0000
(12:19 +0200)
src/tile.cpp
patch
|
blob
|
history
diff --git
a/src/tile.cpp
b/src/tile.cpp
index 4a6523aca5d255a9174ea6d2e6b4817ffc77d16d..1bf09caffddda46b5fddffb90b7c97c284c1b82c 100644
(file)
--- 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);