From ded8b62c916b2ad1782486ed9d1fe5049a82c512 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Fri, 22 Jan 2016 14:01:44 -0800 Subject: [PATCH] [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. --- src/mbgl/renderer/painter_symbol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/renderer/painter_symbol.cpp b/src/mbgl/renderer/painter_symbol.cpp index f0ef2c799..341e7627d 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) {