Code: Select all
void GameScreen::unload()
{
SMGR->clear();
SMGR->getMeshCache()->clear();
DRIVER->removeAllTextures(); // <-- crashes if this is NOT comented
/*
various commented code follows
*/
}
If I comment the "removeAllTextures()", the app proceeds just fine, it can load and render any new models I load, but the textures I no longer use are still loaded and can take up quite a lot of memory.
Any ideas?
PS: I just read http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=26031. And I remembered I DO use particles. I'll try the workaround proposed there first.