From: Alex Romosan Date: Wed, 26 Jun 2013 21:53:07 +0000 (+0200) Subject: Ensure compatibility with OSG 3.1.8. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d0b77639c2f401c531e0cddd8931eb1e8ef8035f;p=simgear.git Ensure compatibility with OSG 3.1.8. --- diff --git a/simgear/scene/material/EffectGeode.cxx b/simgear/scene/material/EffectGeode.cxx index 26eab385..6119f107 100644 --- a/simgear/scene/material/EffectGeode.cxx +++ b/simgear/scene/material/EffectGeode.cxx @@ -80,15 +80,15 @@ void EffectGeode::runGenerators(osg::Geometry *geometry) int n = _effect->getGenerator(Effect::TANGENT); tsg->generate(geometry, 0); // 0 is normal_unit, but I have no idea what that is! if (n != -1 && !geometry->getVertexAttribArray(n)) - geometry->setVertexAttribData(n, osg::Geometry::ArrayData(tsg->getTangentArray(), osg::Geometry::BIND_PER_VERTEX,GL_FALSE)); + geometry->setVertexAttribArray(n, tsg->getTangentArray()); n = _effect->getGenerator(Effect::BINORMAL); if (n != -1 && !geometry->getVertexAttribArray(n)) - geometry->setVertexAttribData(n, osg::Geometry::ArrayData(tsg->getBinormalArray(), osg::Geometry::BIND_PER_VERTEX,GL_FALSE)); + geometry->setVertexAttribArray(n, tsg->getBinormalArray()); n = _effect->getGenerator(Effect::NORMAL); if (n != -1 && !geometry->getVertexAttribArray(n)) - geometry->setVertexAttribData(n, osg::Geometry::ArrayData(tsg->getNormalArray(), osg::Geometry::BIND_PER_VERTEX,GL_FALSE)); + geometry->setVertexAttribArray(n, tsg->getNormalArray()); } }