diff options
Diffstat (limited to 'src/mbgl/tile/raster_dem_tile.cpp')
-rw-r--r-- | src/mbgl/tile/raster_dem_tile.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mbgl/tile/raster_dem_tile.cpp b/src/mbgl/tile/raster_dem_tile.cpp index 5dd9af2632..f5b79c0ded 100644 --- a/src/mbgl/tile/raster_dem_tile.cpp +++ b/src/mbgl/tile/raster_dem_tile.cpp @@ -101,14 +101,13 @@ void RasterDEMTile::backfillBorder(const RasterDEMTile& borderTile, const DEMTil const DEMData& borderDEM = borderBucket->getDEMData(); DEMData& tileDEM = bucket->getDEMData(); - if (tileDEM.isLoaded() && borderDEM.isLoaded()){ - tileDEM.backfillBorder(borderDEM, dx, dy); - // update the bitmask to indicate that this tiles have been backfilled by flipping the relevant bit - this->neighboringTiles = this->neighboringTiles | mask; - // mark HillshadeBucket.prepared as false so it runs through the prepare render pass - // with the new texture data we just backfilled - bucket->setPrepared(false); - } + tileDEM.backfillBorder(borderDEM, dx, dy); + // update the bitmask to indicate that this tiles have been backfilled by flipping the relevant bit + this->neighboringTiles = this->neighboringTiles | mask; + // mark HillshadeBucket.prepared as false so it runs through the prepare render pass + // with the new texture data we just backfilled + bucket->setPrepared(false); + } void RasterDEMTile::setMask(TileMask&& mask) { |