Replaced glColor4fv call with osg::State::Color(..)

This commit is contained in:
Robert Osfield 2009-11-03 16:48:48 +00:00
parent 72ff1f40f9
commit 8a4956a257

View File

@ -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);
}
}