Fix implicit ref_ptr conversions

This commit is contained in:
Marc Helbling 2017-03-06 12:49:06 +01:00
parent 4627821e79
commit 18826a9ebc
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ void Geometry::configureBufferObjects()
itr != arrays.end();
++itr)
{
osg::Array* array = *itr;
osg::Array* array = itr->get();
if (array->getBinding()==osg::Array::BIND_PER_VERTEX)
{
if (array->getNumElements()==numVertices)

View File

@ -262,7 +262,7 @@ osg::ref_ptr<osg::Geometry> ReaderWritterOpenCASCADE::OCCTKReader::_createGeomet
std::cout << "Adding Primitive set" << std::endl;
#endif
geom->addPrimitiveSet(triangleStrip);
geom->addPrimitiveSet(triangleStrip.get());
}
return geom;