Skip to content

Commit

Permalink
Fix an issue where max_tiles_to_unload_per_frame was causing a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Feb 23, 2024
1 parent 2dbba5a commit b880455
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/osgEarthDrivers/engine_rex/TileNodeRegistry
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace osgEarth { namespace REX
public:
using Ptr = std::shared_ptr<TileNodeRegistry>;

using Tracker = SentryTracker<TileNode*>;
using Tracker = SentryTracker<osg::ref_ptr<TileNode>>;

struct TableEntry
{
Expand Down
4 changes: 2 additions & 2 deletions src/osgEarthDrivers/engine_rex/TileNodeRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ TileNodeRegistry::collectDormantTiles(

unsigned count = 0u;

const auto disposeTile = [&](TileNode* tile) -> bool
const auto disposeTile = [&](osg::ref_ptr<TileNode>& tile) -> bool
{
OE_SOFT_ASSERT_AND_RETURN(tile != nullptr, true);
OE_SOFT_ASSERT_AND_RETURN(tile, true);

const TileKey& key = tile->getKey();

Expand Down

0 comments on commit b880455

Please sign in to comment.