summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-10-26 12:34:28 -0700
committerChris Loer <chris.loer@gmail.com>2017-10-31 10:25:57 -0700
commit353b3fb5eaa780460683f62bbd3124d0e69c18c2 (patch)
treea9149ef04eab62eed42f7553b8cc6e2f43a87373
parent27ec6fd20e049bf2c241f253bededd78f0275743 (diff)
downloadqtlocation-mapboxgl-353b3fb5eaa780460683f62bbd3124d0e69c18c2.tar.gz
Oops, got the index length wrong for circle debug boxes.
[skip ci]
-rw-r--r--src/mbgl/layout/symbol_layout.cpp2
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(),