summaryrefslogtreecommitdiff
path: root/src/mbgl/shaders/line_sdf.cpp
diff options
context:
space:
mode:
authorMolly Lloyd <mollymerp@users.noreply.github.com>2018-06-19 13:46:12 -0700
committerGitHub <noreply@github.com>2018-06-19 13:46:12 -0700
commit325ad2f711d038876c0180ac1022c265521e9578 (patch)
tree0849d47931bb065587cab66842c2c8583383b3df /src/mbgl/shaders/line_sdf.cpp
parent4c7842045a231b40aa9f4c4765678f1cd5aa987d (diff)
downloadqtlocation-mapboxgl-325ad2f711d038876c0180ac1022c265521e9578.tar.gz
[core] port zero line-width fix from gl-js (#12175)
* port zero line-width fix from gl-js * ignore transition test * ignore feature-state tests
Diffstat (limited to 'src/mbgl/shaders/line_sdf.cpp')
-rw-r--r--src/mbgl/shaders/line_sdf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/shaders/line_sdf.cpp b/src/mbgl/shaders/line_sdf.cpp
index c5d50566e8..9b6bf47301 100644
--- a/src/mbgl/shaders/line_sdf.cpp
+++ b/src/mbgl/shaders/line_sdf.cpp
@@ -171,7 +171,7 @@ void main() {
offset = -1.0 * offset;
float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);
- float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + ANTIALIASING;
+ float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + (halfwidth == 0.0 ? 0.0 : ANTIALIASING);
// Scale the extrusion vector down to a normal and then up by the line width
// of this vertex.