Use ref_ptr for ReaderWriterSPT
This commit is contained in:
parent
04ca40ad81
commit
0a37986551
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user