Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] use nearest neigbour for some line icons
Browse files Browse the repository at this point in the history
Use nearest neighbour texture filtering to draw sharper icons when the
icons are aligned with the viewport. This matches -js.
  • Loading branch information
ansis committed Jan 22, 2016
1 parent 0101fc0 commit ded8b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mbgl/renderer/painter_symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ded8b62

Please sign in to comment.