mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 15:45:33 +00:00
use correct indexed color mask
This commit is contained in:
parent
895779f2ec
commit
651916694c
1 changed files with 2 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue