From 651916694c4778eedd676495098e28f5b94c9625 Mon Sep 17 00:00:00 2001 From: "glassmancody.info" Date: Mon, 1 Aug 2022 07:56:16 -0700 Subject: [PATCH] use correct indexed color mask --- components/shader/shadervisitor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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))