Use ref_ptr for ReaderWriterSPT

This commit is contained in:
Stuart Buchanan 2020-11-21 21:45:09 +00:00
parent 04ca40ad81
commit 0a37986551

View File

@ -286,7 +286,7 @@ ReaderWriterSPT::createTree(const BucketBox& bucketBox, const LocalOptions& opti
osg::ref_ptr<osg::Node> osg::ref_ptr<osg::Node>
ReaderWriterSPT::createPagedLOD(const BucketBox& bucketBox, const LocalOptions& options) const ReaderWriterSPT::createPagedLOD(const BucketBox& bucketBox, const LocalOptions& options) const
{ {
osg::PagedLOD* pagedLOD = new osg::PagedLOD; osg::ref_ptr<osg::PagedLOD> pagedLOD = new osg::PagedLOD;
pagedLOD->setCenterMode(osg::PagedLOD::USER_DEFINED_CENTER); pagedLOD->setCenterMode(osg::PagedLOD::USER_DEFINED_CENTER);
SGSpheref sphere = bucketBox.getBoundingSphere(); SGSpheref sphere = bucketBox.getBoundingSphere();