mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Revert "fix a rig bug visible with OSG_VERTEX_BUFFER_HINT=VAO"
This commit is contained in:
parent
708a4f85ce
commit
fc19c842cf
@ -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];
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user