summaryrefslogtreecommitdiff
path: root/src/mbgl/shaders/line.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/shaders/line.cpp')
-rw-r--r--src/mbgl/shaders/line.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/shaders/line.cpp b/src/mbgl/shaders/line.cpp
index 68d2dcc468..a4df33d9b6 100644
--- a/src/mbgl/shaders/line.cpp
+++ b/src/mbgl/shaders/line.cpp
@@ -148,7 +148,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.