forked from speed-dreams/speed-dreams-code
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:
parent
e87b225032
commit
b6b6343619
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue