mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Merge pull request #615 from Areloch/Issue_437
Fixed the crash when using glow material on billboard groundcover
This commit is contained in:
commit
aca58356ee
1 changed files with 1 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ RenderGlowMgr::GlowMaterialHook::GlowMaterialHook( BaseMatInstance *matInst )
|
||||||
{
|
{
|
||||||
mGlowMatInst = (MatInstance*)matInst->getMaterial()->createMatInstance();
|
mGlowMatInst = (MatInstance*)matInst->getMaterial()->createMatInstance();
|
||||||
mGlowMatInst->getFeaturesDelegate().bind( &GlowMaterialHook::_overrideFeatures );
|
mGlowMatInst->getFeaturesDelegate().bind( &GlowMaterialHook::_overrideFeatures );
|
||||||
|
mGlowMatInst->setUserObject(matInst->getUserObject());
|
||||||
mGlowMatInst->init( matInst->getRequestedFeatures(),
|
mGlowMatInst->init( matInst->getRequestedFeatures(),
|
||||||
matInst->getVertexFormat() );
|
matInst->getVertexFormat() );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue