Revert "[core] Don't use GL_LINEAR if panning w/o rotation nor pitch"

This reverts commit a70bfd8910.
This commit is contained in:
Bruno de Oliveira Abinader
2016-11-01 01:18:20 +02:00
parent bb6e39a1cf
commit e2981c890e
5 changed files with 7 additions and 17 deletions

View File

@@ -70,7 +70,7 @@ void Painter::renderSymbol(PaintParameters& parameters,
SpriteAtlas& atlas = *layer.impl->spriteAtlas;
const bool iconScaled = values.paintSize != 1.0f || frame.pixelRatio != atlas.getPixelRatio() || bucket.iconsNeedLinear;
const bool iconTransformed = values.rotationAlignment == AlignmentType::Map || state.getPitch() != 0;
atlas.bind(bucket.sdfIcons || state.isScaling() || state.isRotating() || iconScaled || iconTransformed, context, 0);
atlas.bind(bucket.sdfIcons || state.isChanging() || iconScaled || iconTransformed, context, 0);
std::array<uint16_t, 2> texsize {{ atlas.getWidth(), atlas.getHeight() }};