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/geometry | |
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/geometry')
-rw-r--r-- | src/mbgl/geometry/line_buffer.cpp | 2 |
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; } |