From 8a4956a2570687bb98c6899f40b38396bda89769 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 3 Nov 2009 16:48:48 +0000 Subject: [PATCH] Replaced glColor4fv call with osg::State::Color(..) --- examples/osgforest/osgforest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/osgforest/osgforest.cpp b/examples/osgforest/osgforest.cpp index 87253e4ad..58f36517c 100644 --- a/examples/osgforest/osgforest.cpp +++ b/examples/osgforest/osgforest.cpp @@ -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); } }