diff options
author | Ansis Brammanis <brammanis@gmail.com> | 2016-03-28 16:35:49 -0700 |
---|---|---|
committer | Ansis Brammanis <brammanis@gmail.com> | 2016-03-28 17:44:41 -0700 |
commit | 930c3c46c559960f689994e720e3a4efd1ddf608 (patch) | |
tree | c4214d763429c4056c66d437ab0c9654a13108f9 /src/mbgl/renderer/line_bucket.hpp | |
parent | b352bb81d8259f1e52fe933a20f782d1c4327f1a (diff) | |
download | qtlocation-mapboxgl-930c3c46c559960f689994e720e3a4efd1ddf608.tar.gz |
[core] reset line distance when it is near max
port https://github.com/mapbox/mapbox-gl-js/commit/77ce4b45b24e8a0ed1bb739da436d19415c7e5e4
fix #4492
Diffstat (limited to 'src/mbgl/renderer/line_bucket.hpp')
-rw-r--r-- | src/mbgl/renderer/line_bucket.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/renderer/line_bucket.hpp b/src/mbgl/renderer/line_bucket.hpp index 5b6509a5ee..1586bef0a7 100644 --- a/src/mbgl/renderer/line_bucket.hpp +++ b/src/mbgl/renderer/line_bucket.hpp @@ -43,7 +43,7 @@ private: TriangleElement(uint16_t a_, uint16_t b_, uint16_t c_) : a(a_), b(b_), c(c_) {} uint16_t a, b, c; }; - void addCurrentVertex(const GeometryCoordinate& currentVertex, float flip, double distance, + void addCurrentVertex(const GeometryCoordinate& currentVertex, float flip, double& distance, const vec2<double>& normal, float endLeft, float endRight, bool round, GLint startVertex, std::vector<LineBucket::TriangleElement>& triangleStore); void addPieSliceVertex(const GeometryCoordinate& currentVertex, float flip, double distance, |