diff --git a/components/shader/shadervisitor.cpp b/components/shader/shadervisitor.cpp index 5f7225c6fc..08f6894f71 100644 --- a/components/shader/shadervisitor.cpp +++ b/components/shader/shadervisitor.cpp @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include @@ -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))