Fix terrain material leak, this should in theory allow the terrain to free its temporary resources

actorid
scrawl 12 years ago
parent 78596cad83
commit 9648804af5

@ -54,9 +54,10 @@ namespace MWRender
TerrainMaterial::Profile::~Profile()
{
if (mMaterial)
sh::Factory::getInstance().destroyMaterialInstance(mMaterial->getName());
}
Ogre::MaterialPtr TerrainMaterial::Profile::generate(const Ogre::Terrain* terrain)
{
const Ogre::String& matName = terrain->getMaterialName();

Loading…
Cancel
Save