summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2016-01-22 14:01:44 -0800
committerAnsis Brammanis <brammanis@gmail.com>2016-01-22 14:02:09 -0800
commitded8b62c916b2ad1782486ed9d1fe5049a82c512 (patch)
tree74393e2f54c357d76bfefb6727a5f5be1cfe7830
parent0101fc0c898ba543ff5444271d108775f2de9274 (diff)
downloadqtlocation-mapboxgl-ded8b62c916b2ad1782486ed9d1fe5049a82c512.tar.gz
[core] use nearest neigbour for some line icons
Use nearest neighbour texture filtering to draw sharper icons when the icons are aligned with the viewport. This matches -js.
-rw-r--r--src/mbgl/renderer/painter_symbol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/renderer/painter_symbol.cpp b/src/mbgl/renderer/painter_symbol.cpp
index f0ef2c7996..341e7627d9 100644
--- a/src/mbgl/renderer/painter_symbol.cpp
+++ b/src/mbgl/renderer/painter_symbol.cpp
@@ -189,7 +189,7 @@ void Painter::renderSymbol(SymbolBucket& bucket, const SymbolLayer& layer, const
SpriteAtlas* activeSpriteAtlas = layer.spriteAtlas;
const bool iconScaled = fontScale != 1 || data.pixelRatio != activeSpriteAtlas->getPixelRatio() || bucket.iconsNeedLinear;
- const bool iconTransformed = layout.placement == PlacementType::Line || angleOffset != 0 || state.getPitch() != 0;
+ const bool iconTransformed = layout.icon.rotationAlignment == RotationAlignmentType::Map || angleOffset != 0 || state.getPitch() != 0;
activeSpriteAtlas->bind(sdf || state.isChanging() || iconScaled || iconTransformed);
if (sdf) {