Skip to content

Commit

Permalink
Remove load index from base renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Jan 9, 2025
1 parent bda40f8 commit e6cc699
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/base/TilesRendererBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ export class TilesRendererBase {
tile.__active = false;

tile.__loadingState = UNLOADED;
tile.__loadIndex = 0;

tile.__loadAbort = null;

Expand Down Expand Up @@ -666,7 +665,6 @@ export class TilesRendererBase {
}

t.__loadingState = UNLOADED;
t.__loadIndex ++;

parseQueue.remove( t );
downloadQueue.remove( t );
Expand All @@ -680,10 +678,7 @@ export class TilesRendererBase {

}

// Track a new load index so we avoid the condition where this load is stopped and
// another begins soon after so we don't parse twice.
tile.__loadIndex ++;
const loadIndex = tile.__loadIndex;
// track an abort controller and pass-through the below conditions if aborted
const controller = new AbortController();
const signal = controller.signal;

Expand Down

0 comments on commit e6cc699

Please sign in to comment.