Replaced deprecated osg::Geometry::set*Binding() usage

This commit is contained in:
Robert Osfield
2013-06-26 17:45:19 +00:00
parent 55416d83b3
commit 7ee05a345a
3 changed files with 5 additions and 10 deletions

View File

@@ -814,8 +814,7 @@ void GeometryTechnique::generateGeometry(BufferData& buffer, Locator* masterLoca
geometry->setVertexArray(VNG._vertices.get());
// allocate and assign normals
geometry->setNormalArray(VNG._normals.get());
geometry->setNormalBinding(osg::Geometry::BIND_PER_VERTEX);
geometry->setNormalArray(VNG._normals.get(), osg::Array::BIND_PER_VERTEX);
// allocate and assign tex coords
@@ -864,8 +863,7 @@ void GeometryTechnique::generateGeometry(BufferData& buffer, Locator* masterLoca
osg::ref_ptr<osg::Vec4Array> colors = new osg::Vec4Array(1);
(*colors)[0].set(1.0f,1.0f,1.0f,1.0f);
geometry->setColorArray(colors.get());
geometry->setColorBinding(osg::Geometry::BIND_OVERALL);
geometry->setColorArray(colors.get(), osg::Array::BIND_OVERALL);
//
// populate vertex and tex coord arrays