Build fixes for OSG_USE_REF_PTR_IMPLICIT_OUTPUT set to OFF

This commit is contained in:
Robert Osfield 2018-05-12 12:41:42 +01:00
parent 362e355db2
commit 312ce9ad05
2 changed files with 2 additions and 2 deletions

View File

@ -653,7 +653,7 @@ ref_ptr<Group> VBSPGeometry::createGeometry()
// Now, stripify the geode to convert the POLYGON primitives to
// triangle strips
osgUtil::optimizeMesh(geode);
osgUtil::optimizeMesh(geode.get());
}
// Now do the same for the displacement surfaces (if any)

View File

@ -182,7 +182,7 @@ private:
geom->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::TRIANGLES, 0, _numFacets * 3));
if(!_noTriStripPolygons) {
osgUtil::optimizeMesh(geom);
osgUtil::optimizeMesh(geom.get());
}
return geom;