Replaced deprecated osg::Geometry::set*Binding() calls.

This commit is contained in:
Robert Osfield
2013-06-26 17:44:30 +00:00
parent a459033eff
commit 55416d83b3
8 changed files with 25 additions and 46 deletions

View File

@@ -276,8 +276,7 @@ osg::Geode* ReaderWriterDirectX::convertFromDX(DX::Mesh & mesh, bool switchToLef
// Arrays to hold vertices, normals, and texcoords.
geom->setVertexArray(new osg::Vec3Array);
geom->setNormalArray(new osg::Vec3Array);
geom->setNormalBinding(osg::Geometry::BIND_PER_VERTEX);
geom->setNormalArray(new osg::Vec3Array, osg::Array::BIND_PER_VERTEX);
if (textureCount) {
// All texture units share the same array
osg::Vec2Array* texCoords = new osg::Vec2Array;