summaryrefslogtreecommitdiff
path: root/src/mbgl/programs/segment.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/programs/segment.hpp')
-rw-r--r--src/mbgl/programs/segment.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mbgl/programs/segment.hpp b/src/mbgl/programs/segment.hpp
index 7264d89028..98628507c2 100644
--- a/src/mbgl/programs/segment.hpp
+++ b/src/mbgl/programs/segment.hpp
@@ -20,9 +20,10 @@ public:
indexOffset(indexOffset_),
vertexLength(vertexLength_),
indexLength(indexLength_),
- drawScopes(std::make_shared<std::map<std::string, gfx::DrawScope>>()),
sortKey(sortKey_) {}
+ Segment(Segment&&) = default;
+
const std::size_t vertexOffset;
const std::size_t indexOffset;
@@ -36,7 +37,7 @@ public:
// data-driven paint properties
// * when two fill layers have the same layout properties, but one
// uses fill-color and the other uses fill-pattern
- mutable std::shared_ptr<std::map<std::string, gfx::DrawScope>> drawScopes;
+ mutable std::map<std::string, gfx::DrawScope> drawScopes;
unsigned int sortKey;
};