From 52e733d94ec17cf0f34776d3b4269321306b0c97 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Wed, 12 Feb 2014 15:37:48 +0100 Subject: [PATCH] Avoid Nearest mipmap filtering for BorderImage. QSGOpaqueTextureMaterial has Nearest as the default mipmap filtering, which BorderImage inherited. That default value is not ideal, but I would prefer to not change behavior, so request None from borderimage instead. Change-Id: I9857f1434ae9f067c3b0e460ea552d3e854b9d64 Reviewed-by: aavit --- src/quick/items/qquickborderimage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/quick/items/qquickborderimage.cpp b/src/quick/items/qquickborderimage.cpp index 8ecf473..b4a89b3 100644 --- a/src/quick/items/qquickborderimage.cpp +++ b/src/quick/items/qquickborderimage.cpp @@ -619,6 +619,7 @@ QSGNode *QQuickBorderImage::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeDat node->setSubSourceRect(QRectF(0, 0, hTiles, vTiles)); node->setMirror(d->mirror); + node->setMipmapFiltering(QSGTexture::None); node->setFiltering(d->smooth ? QSGTexture::Linear : QSGTexture::Nearest); if (innerSourceRect == QRectF(0, 0, 1, 1) && (vTiles > 1 || hTiles > 1)) { node->setHorizontalWrapMode(QSGTexture::Repeat); -- 2.7.4