Skip to content

Commit

Permalink
try fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Jun 21, 2021
1 parent 413d513 commit df7749e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/render/draw_background.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ function drawBackground(painter: Painter, sourceCache: SourceCache, layer: Backg
const matrix = coords ? tileID.projMatrix : painter.transform.calculateProjMatrix(unwrappedTileID);
painter.prepareDrawTile(tileID);

const tile = backgroundTiles ? backgroundTiles[tileID.key] : sourceCache.getTile(tileID);
const tile = coords ? sourceCache.getTile(tileID) : backgroundTiles ? backgroundTiles[tileID.key] : null;
if (!tile) continue;

const uniformValues = image ?
backgroundPatternUniformValues(matrix, opacity, painter, image, {tileID, tileSize}, crossfade) :
Expand Down

0 comments on commit df7749e

Please sign in to comment.