diff --git a/src/osgPlugins/txp/TXPPagedLOD.cpp b/src/osgPlugins/txp/TXPPagedLOD.cpp index 170b76a92..a146cac5f 100644 --- a/src/osgPlugins/txp/TXPPagedLOD.cpp +++ b/src/osgPlugins/txp/TXPPagedLOD.cpp @@ -28,6 +28,10 @@ TXPPagedLOD::~TXPPagedLOD() void TXPPagedLOD::traverse(osg::NodeVisitor& nv) { +// PagedLOD::traverse(nv); +// +// return; + double timeStamp = nv.getFrameStamp()?nv.getFrameStamp()->getReferenceTime():0.0; bool updateTimeStamp = nv.getVisitorType()==osg::NodeVisitor::CULL_VISITOR; diff --git a/src/osgPlugins/txp/TileMapper.cpp b/src/osgPlugins/txp/TileMapper.cpp index cdfc49ab6..59585f4ee 100644 --- a/src/osgPlugins/txp/TileMapper.cpp +++ b/src/osgPlugins/txp/TileMapper.cpp @@ -13,7 +13,7 @@ osg::PagedLOD* TileMapper::getPagedLOD(int x, int y, int lod) { OpenThreads::ScopedLock lock(_mutex); TileMap::iterator itr = _tileMap.find(TileTriple(x,y,lod)); - if (itr!=_tileMap.end()) return itr->second.get(); + if (itr!=_tileMap.end()) return itr->second; else return 0; } @@ -32,17 +32,17 @@ void TileMapper::removePagedLOD(int x, int y, int lod) void TileMapper::prunePagedLOD() { - OpenThreads::ScopedLock lock(_mutex); - for(TileMap::iterator itr = _tileMap.begin(); - itr!=_tileMap.end(); - ++itr) - { - if (itr->second.valid() && itr->second->referenceCount()==1) - { - TileMap::iterator eitr = itr; - --itr; - _tileMap.erase(eitr); - } - } +// OpenThreads::ScopedLock lock(_mutex); +// for(TileMap::iterator itr = _tileMap.begin(); +// itr!=_tileMap.end(); +// ++itr) +// { +// if (itr->second.valid() && itr->second->referenceCount()==1) +// { +// TileMap::iterator eitr = itr; +// --itr; +// _tileMap.erase(eitr); +// } +// } //std::cout<<"_tileMap.size()="<<_tileMap.size()<