Index glyph use by tile pointer value, not tile ID

There can be multiple tiles with the same ID, but from different
sources.

Fixes #957
This commit is contained in:
John Firebaugh
2015-03-12 17:46:52 -07:00
parent 96682a02af
commit 6325f1e25a
6 changed files with 21 additions and 18 deletions

View File

@@ -25,7 +25,7 @@ VectorTileData::VectorTileData(Tile::ID const& id_,
}
VectorTileData::~VectorTileData() {
glyphAtlas.removeGlyphs(id.to_uint64());
glyphAtlas.removeGlyphs(reinterpret_cast<uintptr_t>(this));
}