summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-08-05 11:54:06 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-08-05 11:54:06 +0300
commit9a56fff96471352146904c425da8aae71258a002 (patch)
tree05fdc0a9d228ef6ca5e17bd4a4f3d33261458741
parent5784e326e20f2661874206d2e4d8b16061646745 (diff)
downloadqtlocation-mapboxgl-upstream/alexshalamov_decrease_angle_for_line_join_approx.tar.gz
[core] Increase round join approximation precisionupstream/alexshalamov_decrease_angle_for_line_join_approx
-rw-r--r--src/mbgl/renderer/buckets/line_bucket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/renderer/buckets/line_bucket.cpp b/src/mbgl/renderer/buckets/line_bucket.cpp
index 6c4afa9d5a..9019e76d3b 100644
--- a/src/mbgl/renderer/buckets/line_bucket.cpp
+++ b/src/mbgl/renderer/buckets/line_bucket.cpp
@@ -64,7 +64,7 @@ const float COS_HALF_SHARP_CORNER = std::cos(75.0 / 2.0 * (M_PI / 180.0));
const float SHARP_CORNER_OFFSET = 15.0f;
// Angle per triangle for approximating round line joins.
-const float DEG_PER_TRIANGLE = 30.0f;
+const float DEG_PER_TRIANGLE = 20.0f;
// The number of bits that is used to store the line distance in the buffer.
const int LINE_DISTANCE_BUFFER_BITS = 14;