From fa64103aa87a8f0f2a3351bb4a54e93e8ade1082 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 27 Dec 2010 14:34:17 +0200 Subject: better debug output in segfaults and stack overflows in windows --- src/mapblock.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mapblock.cpp') diff --git a/src/mapblock.cpp b/src/mapblock.cpp index 202877322..e82818396 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -275,6 +275,10 @@ void MapBlock::makeFastFace(TileSpec tile, u8 light, v3f p, */ TileSpec MapBlock::getNodeTile(MapNode mn, v3s16 p, v3s16 face_dir) { + // DEBUG + u16 *ptr = NULL; + *ptr = 7357; + TileSpec spec; /*//DEBUG @@ -688,6 +692,7 @@ void MapBlock::updateMesh(u32 daynight_ratio) collector.fillMesh(mesh_new); // Use VBO for mesh (this just would set this for ever buffer) + // This will lead to infinite memory usage because or irrlicht. //mesh_new->setHardwareMappingHint(scene::EHM_STATIC); /*std::cout<<"MapBlock has "<getSize()<<" faces " -- cgit v1.2.3