1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 11:09:43 +00:00

Merge branch 'wrong_maski' into 'master'

[Postprocessing] Use correct indexed color mask

See merge request OpenMW/openmw!2230
This commit is contained in:
psi29a 2022-08-01 16:47:10 +00:00
commit 44339889dd

View file

@ -12,7 +12,7 @@
#include <osg/Multisample>
#include <osg/Texture>
#include <osg/ValueObject>
#include <osg/Capability>
#include <osg/ColorMaski>
#include <osgParticle/ParticleSystem>
@ -636,8 +636,7 @@ namespace Shader
{
if (reqs.mSoftParticles)
defineMap["disableNormals"] = "1";
else
writableStateSet->setAttribute(new osg::Disablei(GL_BLEND, 1));
writableStateSet->setAttribute(new osg::ColorMaski(1, false, false, false, false));
}
if (writableStateSet->getMode(GL_ALPHA_TEST) != osg::StateAttribute::INHERIT && !previousAddedState->hasMode(GL_ALPHA_TEST))