Merge pull request #615 from Areloch/Issue_437

Fixed the crash when using glow material on billboard groundcover
This commit is contained in:
Daniel Buckmaster 2014-04-18 11:09:10 +10:00
commit aca58356ee

View file

@ -54,6 +54,7 @@ RenderGlowMgr::GlowMaterialHook::GlowMaterialHook( BaseMatInstance *matInst )
{
mGlowMatInst = (MatInstance*)matInst->getMaterial()->createMatInstance();
mGlowMatInst->getFeaturesDelegate().bind( &GlowMaterialHook::_overrideFeatures );
mGlowMatInst->setUserObject(matInst->getUserObject());
mGlowMatInst->init( matInst->getRequestedFeatures(),
matInst->getVertexFormat() );
}