Work around crashes when visting overworld twice. However I'm pretty sure this 'fix' causes a leak

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10773 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-01-31 01:23:50 +00:00
parent 19dd91da8f
commit b950d4a7bc

View File

@ -831,7 +831,8 @@ bool Track::loadMainTrack(const XMLNode &root)
convertTrackToBullet(scene_node);
scene_node->remove();
irr_driver->grabAllTextures(original_mesh);
scene::IMesh* mesh = manip->createMeshWithTangents(original_mesh);
mesh->grab();
irr_driver->grabAllTextures(mesh);