diff options
author | Chris Loer <chris.loer@gmail.com> | 2017-10-26 12:34:28 -0700 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2017-10-26 12:38:46 -0700 |
commit | a4663df34bfceac85bc18b6cf0b38895c070a77f (patch) | |
tree | a3ac1f2df96d51b8cc61f8f35a13050ff9fc4ed0 | |
parent | 57b81bb1176535062c158e21141978ac0edf8bf1 (diff) | |
download | qtlocation-mapboxgl-a4663df34bfceac85bc18b6cf0b38895c070a77f.tar.gz |
Oops, got the index length wrong for circle debug boxes.
[skip ci]
-rw-r--r-- | src/mbgl/layout/symbol_layout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/layout/symbol_layout.cpp b/src/mbgl/layout/symbol_layout.cpp index b9f3bb8f8d..09d01ba876 100644 --- a/src/mbgl/layout/symbol_layout.cpp +++ b/src/mbgl/layout/symbol_layout.cpp @@ -534,7 +534,7 @@ void SymbolLayout::addToDebugBuffers(SymbolBucket& bucket) { Point<float> br{box.x2, box.y2}; static constexpr std::size_t vertexLength = 4; - const std::size_t indexLength = feature.alongLine ? 4 : 8; + const std::size_t indexLength = feature.alongLine ? 6 : 8; if (collisionBuffer.segments.empty() || collisionBuffer.segments.back().vertexLength + vertexLength > std::numeric_limits<uint16_t>::max()) { collisionBuffer.segments.emplace_back(collisionBuffer.vertices.vertexSize(), |