]> git.mxchange.org Git - simgear.git/commitdiff
fix SGPagedLOD change for 2.8.3
authorTim Moore <timoore33@gmail.com>
Thu, 17 Feb 2011 10:39:52 +0000 (11:39 +0100)
committerTim Moore <timoore33@gmail.com>
Thu, 17 Feb 2011 10:39:52 +0000 (11:39 +0100)
One more try...

simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/SGPagedLOD.hxx

index 531b45b0b74efc9e012b81ef4867dcd9138f1083..f503544ac6226308e520e0d915e25ac2d51f3b3f 100644 (file)
@@ -46,8 +46,10 @@ SGPagedLOD::~SGPagedLOD()
 }
 
 SGPagedLOD::SGPagedLOD(const SGPagedLOD& plod,const CopyOp& copyop)
-        : osg::PagedLOD(plod, copyop),
-        _readerWriterOptions(plod._readerWriterOptions)
+        : osg::PagedLOD(plod, copyop)
+#if !SG_PAGEDLOD_HAS_OPTIONS
+        ,  _readerWriterOptions(plod._readerWriterOptions)
+#endif
 {
 }
 
@@ -84,7 +86,7 @@ void SGPagedLOD::forceLoad(osgDB::DatabasePager *dbp, FrameStamp* framestamp,
     dbp->requestNodeFile(getFileName(childNum), NodePathProxy(path),
                          priority, framestamp,
                          getDatabaseRequest(childNum),
-                         _readerWriterOptions.get());
+                         getReaderWriterOptions());
 }
 
 bool SGPagedLOD_writeLocalData(const Object& obj, osgDB::Output& fw)
index 61530de305ea6ff9e2f74ccc6bfd799fcdf49161..25a0e133c3a2a69f22f59fd37649a574d26ba7a0 100644 (file)
@@ -71,7 +71,7 @@ public:
 
 protected:
     virtual ~SGPagedLOD();
-#if SG_PAGEDLOD_HAS_OPTIONS
+#if !SG_PAGEDLOD_HAS_OPTIONS
     osg::ref_ptr<osgDB::ReaderWriter::Options> _readerWriterOptions;
 #endif
 };