summaryrefslogtreecommitdiff
path: root/src/mbgl/geometry
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2016-03-28 16:35:49 -0700
committerAnsis Brammanis <brammanis@gmail.com>2016-03-28 17:44:41 -0700
commit930c3c46c559960f689994e720e3a4efd1ddf608 (patch)
treec4214d763429c4056c66d437ab0c9654a13108f9 /src/mbgl/geometry
parentb352bb81d8259f1e52fe933a20f782d1c4327f1a (diff)
downloadqtlocation-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/geometry')
-rw-r--r--src/mbgl/geometry/line_buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/geometry/line_buffer.cpp b/src/mbgl/geometry/line_buffer.cpp
index b35d3e8f47..75b9af7e20 100644
--- a/src/mbgl/geometry/line_buffer.cpp
+++ b/src/mbgl/geometry/line_buffer.cpp
@@ -22,7 +22,7 @@ GLsizei LineVertexBuffer::add(vertex_type x, vertex_type y, float ex, float ey,
// The z component's first bit, as well as the sign bit is reserved for the direction,
// so we need to shift the linesofar.
extrude[6] = ((dir < 0) ? -1 : 1) * ((dir ? 1 : 0) | static_cast<int8_t>((linesofar << 1) & 0x7F));
- extrude[7] = (linesofar >> 6) & 0x7F;
+ extrude[7] = ((linesofar >> 6) & 0xFF) - 128;
return idx;
}