summaryrefslogtreecommitdiff
path: root/src/mbgl
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-03-17 13:38:30 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-03-24 16:08:26 -0700
commit96f6b792513a9d3a6042281f2dfc2a8c0a7c90c9 (patch)
treea0b5e4a0972dc4d075f83ce8268768aed5411ac7 /src/mbgl
parentb4abc3258f7f609a4c94c413bc6c19fef6239cf7 (diff)
downloadqtlocation-mapboxgl-96f6b792513a9d3a6042281f2dfc2a8c0a7c90c9.tar.gz
Compare correct fill/stroke variables
The comparisons here need to take into account the check above for the special value {{ 0, 0, 0, -1 }} for stroke_color, which indicates that the fill color should be used.
Diffstat (limited to 'src/mbgl')
-rw-r--r--src/mbgl/renderer/painter_fill.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/renderer/painter_fill.cpp b/src/mbgl/renderer/painter_fill.cpp
index 53fa337bed..bbf50987ab 100644
--- a/src/mbgl/renderer/painter_fill.cpp
+++ b/src/mbgl/renderer/painter_fill.cpp
@@ -36,8 +36,8 @@ void Painter::renderFill(FillBucket& bucket, const StyleLayer &layer_desc, const
const bool pattern = properties.image.from.size();
- bool outline = properties.antialias && !pattern && properties.stroke_color != properties.fill_color;
- bool fringeline = properties.antialias && !pattern && properties.stroke_color == properties.fill_color;
+ bool outline = properties.antialias && !pattern && stroke_color != fill_color;
+ bool fringeline = properties.antialias && !pattern && stroke_color == fill_color;
// Because we're drawing top-to-bottom, and we update the stencil mask
// befrom, we have to draw the outline first (!)