Use ref_ptr for ReaderWriterSPT

This commit is contained in:
Stuart Buchanan
2020-12-07 17:18:32 +00:00
committed by Automatic Release Builder
parent f89227fc1a
commit 4aebc159d5
+1 -1
View File
@@ -294,7 +294,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();