Index: cc/tiled_layer_impl.cc |
diff --git a/cc/tiled_layer_impl.cc b/cc/tiled_layer_impl.cc |
index b7fe7b81e1004f0c5023cbbc00cfee4a3105d7ed..c8973200e6f7e6ac00763a0c08d2238b59f42743 100644 |
--- a/cc/tiled_layer_impl.cc |
+++ b/cc/tiled_layer_impl.cc |
@@ -198,7 +198,7 @@ void TiledLayerImpl::appendQuads(QuadSink& quadSink, AppendQuadsData& appendQuad |
bool rightEdgeAA = i == m_tiler->numTilesX() - 1 && useAA; |
bool bottomEdgeAA = j == m_tiler->numTilesY() - 1 && useAA; |
- const GLint textureFilter = m_tiler->hasBorderTexels() ? GL_LINEAR : GL_NEAREST; |
+ const GLint textureFilter = m_tiler->hasBorderTexels() && !drawTransform().isIdentityOrTranslation() ? GL_LINEAR : GL_NEAREST; |
jamesr
2012/11/09 18:40:09
for non-integer translations we still need GL_LINE
Sami
2012/11/11 16:56:27
Excellent point. I've changed this to use isIntege
|
quadSink.append(TileDrawQuad::create(sharedQuadState, tileRect, tileOpaqueRect, tile->resourceId(), textureOffset, textureSize, textureFilter, tile->contentsSwizzled(), leftEdgeAA, topEdgeAA, rightEdgeAA, bottomEdgeAA).PassAs<DrawQuad>(), appendQuadsData); |
} |
} |