summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2018-11-13 16:05:00 -0800
committerjmkiley <jordan.kiley@mapbox.com>2018-11-13 16:05:00 -0800
commitef6119a4694ba18479928824a46231fef8c52ba6 (patch)
treec994d2e88acd9e715ff8fce38dfc06795ebc3d2b
parenta3945bf84004ece5116861266a73a60d67beebbe (diff)
downloadqtlocation-mapboxgl-upstream/ds-jk-line_bucket.tar.gz
[core] check for coordinates matchingupstream/ds-jk-line_bucket
-rw-r--r--src/mbgl/renderer/buckets/line_bucket.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/renderer/buckets/line_bucket.cpp b/src/mbgl/renderer/buckets/line_bucket.cpp
index 2efb60c9ac..882a60415f 100644
--- a/src/mbgl/renderer/buckets/line_bucket.cpp
+++ b/src/mbgl/renderer/buckets/line_bucket.cpp
@@ -3,6 +3,7 @@
#include <mbgl/style/layers/line_layer_impl.hpp>
#include <mbgl/util/math.hpp>
#include <mbgl/util/constants.hpp>
+#include <iostream>
#include <cassert>
@@ -181,6 +182,8 @@ void LineBucket::addGeometry(const GeometryCoordinates& coordinates, const Geome
// if two consecutive vertices exist, skip the current one
if (nextCoordinate && coordinates[i] == *nextCoordinate) {
+ std::clog << nextCoordinate->x << "," << nextCoordinate->y;
+ abort();
continue;
}