diff --git a/src/base/TilesRendererBase.js b/src/base/TilesRendererBase.js index 463aa9fa..6f85c4bb 100644 --- a/src/base/TilesRendererBase.js +++ b/src/base/TilesRendererBase.js @@ -251,7 +251,7 @@ export class TilesRendererBase { // save the tile in a separate "used set" so we can mark it as unused // before the next tile set traversal this.usedSet.add( tile ); - this.lruCache.add( tile ); + this.lruCache.markUnused( tile ); } diff --git a/src/base/traverseFunctions.js b/src/base/traverseFunctions.js index 79338c13..41b45e29 100644 --- a/src/base/traverseFunctions.js +++ b/src/base/traverseFunctions.js @@ -102,7 +102,7 @@ function markUsed( tile, renderer ) { } tile.__used = true; - tile.markTileUsed( tile ); + renderer.markTileUsed( tile ); renderer.stats.used ++; if ( tile.__inFrustum === true ) {