1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:53:52 +00:00

Merge pull request #2079 from OpenMW/revert-2054-master

Revert "fix a rig bug visible with OSG_VERTEX_BUFFER_HINT=VAO"
This commit is contained in:
Bret Curtis 2018-12-14 10:08:14 +01:00 committed by GitHub
commit 6ef974f4eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 2 deletions

View file

@ -30,7 +30,6 @@ void MorphGeometry::setSourceGeometry(osg::ref_ptr<osg::Geometry> sourceGeom)
for (unsigned int i=0; i<2; ++i)
{
mGeometry[i] = new osg::Geometry(*mSourceGeometry, osg::CopyOp::SHALLOW_COPY);
mGeometry[i]->setDataVariance(osg::Object::DYNAMIC);
const osg::Geometry& from = *mSourceGeometry;
osg::Geometry& to = *mGeometry[i];

View file

@ -63,7 +63,6 @@ void RigGeometry::setSourceGeometry(osg::ref_ptr<osg::Geometry> sourceGeometry)
{
const osg::Geometry& from = *sourceGeometry;
mGeometry[i] = new osg::Geometry(from, osg::CopyOp::SHALLOW_COPY);
mGeometry[i]->setDataVariance(osg::Object::DYNAMIC);
osg::Geometry& to = *mGeometry[i];
to.setSupportsDisplayList(false);
to.setUseVertexBufferObjects(true);