1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Ogre crash workaround (Fixes #1745)

This commit is contained in:
scrawl 2015-01-10 15:27:03 +01:00
parent 595c08817f
commit 91571f51be

View file

@ -169,6 +169,9 @@ struct AddGlow
instance->setProperty("env_map", sh::makeProperty(new sh::BooleanValue(true))); instance->setProperty("env_map", sh::makeProperty(new sh::BooleanValue(true)));
instance->setProperty("env_map_color", sh::makeProperty(new sh::Vector3(mColor->x, mColor->y, mColor->z))); instance->setProperty("env_map_color", sh::makeProperty(new sh::Vector3(mColor->x, mColor->y, mColor->z)));
// Workaround for crash in Ogre (https://bitbucket.org/sinbad/ogre/pull-request/447/fix-shadows-crash-for-textureunitstates/diff)
// Remove when the fix is merged
instance->getMaterial()->setShadowCasterMaterial("openmw_shadowcaster_noalpha");
} }
}; };