Skip to content

Commit

Permalink
Fix background image for label
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed May 26, 2023
1 parent ca81442 commit 2508fdd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/engine/Source/Scene/Billboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -1169,14 +1169,6 @@ Billboard.prototype._loadImage = function () {
}

if (defined(image)) {
// No need to wait on imageIndexPromise since these have already been added to the atlas
const index = atlas.getImageIndex(imageId);
const subRegionIndex = atlas.getSubRegionIndex(imageId);
if (defined(index) && defined(subRegionIndex)) {
completeImageLoad(index);
return;
}

imageIndexPromise = atlas.addImage(imageId, image);
}
if (defined(imageSubRegion)) {
Expand Down

0 comments on commit 2508fdd

Please sign in to comment.