diff options
author | root <root@rshg054.dnsready.net> | 2013-07-26 01:14:24 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-26 01:14:24 -0700 |
commit | 09c5dbb237be55059b6816f81295f2f122742a0a (patch) | |
tree | 1e175dc5bb6de2e61d52b8fba36b6fea52517685 /community/simgear/osg-3.2.patch | |
parent | d184897bb273331edc2aa9c37f6514f9956c58f4 (diff) |
Fri Jul 26 01:13:58 PDT 2013
Diffstat (limited to 'community/simgear/osg-3.2.patch')
-rw-r--r-- | community/simgear/osg-3.2.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/community/simgear/osg-3.2.patch b/community/simgear/osg-3.2.patch new file mode 100644 index 000000000..30d732ad6 --- /dev/null +++ b/community/simgear/osg-3.2.patch @@ -0,0 +1,22 @@ +diff -wbBur simgear-2.10.0/simgear/scene/material/EffectGeode.cxx simgear-2.10.0.q/simgear/scene/material/EffectGeode.cxx +--- simgear-2.10.0/simgear/scene/material/EffectGeode.cxx 2011-06-29 18:58:56.000000000 +0400 ++++ simgear-2.10.0.q/simgear/scene/material/EffectGeode.cxx 2013-07-25 16:14:24.268934729 +0400 +@@ -80,15 +80,15 @@ + 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(), osg::Array::BIND_PER_VERTEX); + + 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(), osg::Array::BIND_PER_VERTEX); + + 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(), osg::Array::BIND_PER_VERTEX); + } + } + |