1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-16 11:39:41 +00:00

Ensure GL_BLEND is disabled when drawing shadow maps

This commit is contained in:
AnyOldName3 2020-12-20 01:36:34 +00:00
parent 0e4e8eb0f3
commit 657da50d99

View file

@ -54,7 +54,7 @@ ShadowsBin::ShadowsBin()
mShaderAlphaTestStateSet = new osg::StateSet;
mShaderAlphaTestStateSet->addUniform(new osg::Uniform("alphaTestShadows", true));
mShaderAlphaTestStateSet->setMode(GL_BLEND, osg::StateAttribute::OFF | osg::StateAttribute::OVERRIDE);
mShaderAlphaTestStateSet->setMode(GL_BLEND, osg::StateAttribute::OFF | osg::StateAttribute::PROTECTED | osg::StateAttribute::OVERRIDE);
for (size_t i = 0; i < sCastingPrograms.size(); ++i)
{