mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-11 13:41:26 +00:00
Fix reset of blend function (Bug #3811)
This commit is contained in:
parent
2a74f79bf1
commit
b064dd29cc
1 changed files with 0 additions and 1 deletions
|
@ -95,7 +95,6 @@ namespace MWRender
|
||||||
osg::BlendFunc* blendFunc = static_cast<osg::BlendFunc*>(stateset->getAttribute(osg::StateAttribute::BLENDFUNC));
|
osg::BlendFunc* blendFunc = static_cast<osg::BlendFunc*>(stateset->getAttribute(osg::StateAttribute::BLENDFUNC));
|
||||||
osg::ref_ptr<osg::BlendFunc> newBlendFunc = blendFunc ? new osg::BlendFunc(*blendFunc) : new osg::BlendFunc;
|
osg::ref_ptr<osg::BlendFunc> newBlendFunc = blendFunc ? new osg::BlendFunc(*blendFunc) : new osg::BlendFunc;
|
||||||
newBlendFunc->setDestinationAlpha(osg::BlendFunc::ONE);
|
newBlendFunc->setDestinationAlpha(osg::BlendFunc::ONE);
|
||||||
newBlendFunc->setDestinationRGB(osg::BlendFunc::ONE);
|
|
||||||
newStateSet->setAttribute(newBlendFunc, osg::StateAttribute::ON);
|
newStateSet->setAttribute(newBlendFunc, osg::StateAttribute::ON);
|
||||||
node.setStateSet(newStateSet);
|
node.setStateSet(newStateSet);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue