summaryrefslogtreecommitdiff
path: root/src/map/vector_tile_data.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-11-25 13:36:07 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-11-26 15:13:13 -0800
commit576533b18c7ecc93656f840994d90a3bb86ae239 (patch)
tree59867819363f56d4ccdf68198bceb763ec46baa5 /src/map/vector_tile_data.cpp
parent3aa15306f6b9df452a42a419b2096e41ba11d414 (diff)
downloadqtlocation-mapboxgl-576533b18c7ecc93656f840994d90a3bb86ae239.tar.gz
Eliminate Map::getTexturepool()
Diffstat (limited to 'src/map/vector_tile_data.cpp')
-rw-r--r--src/map/vector_tile_data.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/vector_tile_data.cpp b/src/map/vector_tile_data.cpp
index d2f73269c0..fde181e2cb 100644
--- a/src/map/vector_tile_data.cpp
+++ b/src/map/vector_tile_data.cpp
@@ -11,11 +11,13 @@ using namespace mbgl;
VectorTileData::VectorTileData(Tile::ID const& id_, Map &map_,
GlyphAtlas& glyphAtlas_, GlyphStore& glyphStore_,
SpriteAtlas& spriteAtlas_,
+ Texturepool& texturepool_,
const util::ptr<SourceInfo> &source_)
: TileData(id_, map_, source_),
glyphAtlas(glyphAtlas_),
glyphStore(glyphStore_),
spriteAtlas(spriteAtlas_),
+ texturepool(texturepool_),
depth(id.z >= source->max_zoom ? map.getMaxZoom() - id.z : 1) {
}
@@ -35,7 +37,8 @@ void VectorTileData::parse() {
// is going to be discarded afterwards.
TileParser parser(data, *this, map.getStyle(),
glyphAtlas, glyphStore,
- spriteAtlas, map.getSprite());
+ spriteAtlas, map.getSprite(),
+ texturepool);
parser.parse();
} catch (const std::exception& ex) {
#if defined(DEBUG)