NinjaSaru
08-05-2009 09:18:22
My app is crashing on shutdown and it seems to be related to the presence of dynamic lights. It's pretty easy to recreate using the demo app. In ETSample.cpp somewhere in DemoETSM::createScene(), add the following code (I put it right after configuration of the Camera but I don't think it matters).
But if you point the camera away from the terrain so it never passes into view, and exit without ever looking at it, then the crash does not occur. But if you look at it at all, it still crashes. To test this I just changed the Camera start out looking straight up.
Any help would be great! Thanks!
mSceneMgr->getRootSceneNode()->createChildSceneNode("LightNode")->attachObject(mSceneMgr->createLight("Light"));
But if you point the camera away from the terrain so it never passes into view, and exit without ever looking at it, then the crash does not occur. But if you look at it at all, it still crashes. To test this I just changed the Camera start out looking straight up.
Any help would be great! Thanks!