diff --git a/CMakeLists.txt b/CMakeLists.txt index 710764658..0d8df9049 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,7 @@ mason_use(pixelmatch VERSION 0.10.0 HEADER_ONLY) mason_use(geojson VERSION 0.4.0 HEADER_ONLY) mason_use(polylabel VERSION 1.0.2 HEADER_ONLY) mason_use(wagyu VERSION 0.4.1 HEADER_ONLY) -mason_use(shelf-pack VERSION 2.0.1 HEADER_ONLY) +mason_use(shelf-pack VERSION 2.1.0 HEADER_ONLY) add_definitions(-DRAPIDJSON_HAS_STDSTRING=1) diff --git a/src/mbgl/renderer/image_atlas.cpp b/src/mbgl/renderer/image_atlas.cpp index 964918717..8eee7c209 100644 --- a/src/mbgl/renderer/image_atlas.cpp +++ b/src/mbgl/renderer/image_atlas.cpp @@ -48,11 +48,11 @@ ImageAtlas makeImageAtlas(const ImageMap& images) { ImagePosition { bin, image }); } -// pack.shrink(); -// result.image.resize({ -// static_cast(pack.width()), -// static_cast(pack.height()) -// }); + pack.shrink(); + result.image.resize({ + static_cast(pack.width()), + static_cast(pack.height()) + }); return result; } diff --git a/src/mbgl/text/glyph_atlas.cpp b/src/mbgl/text/glyph_atlas.cpp index 6636c23f3..1b98ea36b 100644 --- a/src/mbgl/text/glyph_atlas.cpp +++ b/src/mbgl/text/glyph_atlas.cpp @@ -53,11 +53,11 @@ GlyphAtlas makeGlyphAtlas(const GlyphMap& glyphs) { } } -// pack.shrink(); -// result.image.resize({ -// static_cast(pack.width()), -// static_cast(pack.height()) -// }); + pack.shrink(); + result.image.resize({ + static_cast(pack.width()), + static_cast(pack.height()) + }); return result; }