Fix implicit ref_ptr conversions
This commit is contained in:
parent
4627821e79
commit
18826a9ebc
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user