Replaced glColor4fv call with osg::State::Color(..)
This commit is contained in:
parent
72ff1f40f9
commit
8a4956a257
@ -802,7 +802,7 @@ class ShaderGeometry : public osg::Drawable
|
||||
itr != _trees.end();
|
||||
++itr)
|
||||
{
|
||||
glColor4fv(itr->ptr());
|
||||
renderInfo.getState()->Color((*itr)[0],(*itr)[1],(*itr)[2],(*itr)[3]);
|
||||
_geometry->draw(renderInfo);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user