From b064dd29ccb7d60d44b11bcf9df806d0d13684b7 Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 27 Mar 2017 02:51:23 +0200 Subject: [PATCH] Fix reset of blend function (Bug #3811) --- apps/openmw/mwrender/characterpreview.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/openmw/mwrender/characterpreview.cpp b/apps/openmw/mwrender/characterpreview.cpp index 9dc1d6e77..dfb737d5e 100644 --- a/apps/openmw/mwrender/characterpreview.cpp +++ b/apps/openmw/mwrender/characterpreview.cpp @@ -95,7 +95,6 @@ namespace MWRender osg::BlendFunc* blendFunc = static_cast(stateset->getAttribute(osg::StateAttribute::BLENDFUNC)); osg::ref_ptr newBlendFunc = blendFunc ? new osg::BlendFunc(*blendFunc) : new osg::BlendFunc; newBlendFunc->setDestinationAlpha(osg::BlendFunc::ONE); - newBlendFunc->setDestinationRGB(osg::BlendFunc::ONE); newStateSet->setAttribute(newBlendFunc, osg::StateAttribute::ON); node.setStateSet(newStateSet); }