fix osg Warning: texture attribute 'TexEnv' passed to setAttributeAndModes(attr,value)

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7129 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: ca52e5229a50e1f63bb4c939e0100ff155e6cfd4
Former-commit-id: 9156fd69ec45b4d07d5d40b10a2f51d543f66954
This commit is contained in:
iobyte 2020-06-04 22:30:02 +00:00
parent e87b225032
commit b6b6343619

View file

@ -172,7 +172,7 @@ void SDCarLights::loadStates()
state_set->setMode(GL_ALPHA_TEST, osg::StateAttribute::OFF | osg::StateAttribute::PROTECTED);
state_set->setTextureAttributeAndModes(0, texture, osg::StateAttribute::ON);
state_set->setAttributeAndModes(new osg::PolygonOffset(-15.f, -20.f), osg::StateAttribute::ON);
state_set->setAttributeAndModes(new osg::TexEnv(osg::TexEnv::MODULATE), osg::StateAttribute::ON);
state_set->setTextureAttributeAndModes(0, new osg::TexEnv(osg::TexEnv::MODULATE), osg::StateAttribute::ON);
state_set->setAttributeAndModes(new osg::Depth(osg::Depth::LESS, 0.0, 1.0, false), osg::StateAttribute::ON);
state_set->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);