From 3a22766e8c4ea39836f197552e92b3cc78e77f62 Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Mon, 15 Feb 2016 14:11:44 +1100 Subject: Fix Image smoothing not working Linear interpolation should be interpreted as smooth rather than nearest neighbor. Task-number: QTBUG-51122 Change-Id: I6ac1fe806c16671aec383e0a235fef41e5e9105f Reviewed-by: Andy Nichols --- src/plugins/scenegraph/softwarecontext/imagenode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/scenegraph/softwarecontext/imagenode.cpp b/src/plugins/scenegraph/softwarecontext/imagenode.cpp index 7bbe5dc2eb..968d36f496 100644 --- a/src/plugins/scenegraph/softwarecontext/imagenode.cpp +++ b/src/plugins/scenegraph/softwarecontext/imagenode.cpp @@ -367,7 +367,7 @@ void ImageNode::setMipmapFiltering(QSGTexture::Filtering /*filtering*/) void ImageNode::setFiltering(QSGTexture::Filtering filtering) { - bool smooth = (filtering == QSGTexture::Nearest); + bool smooth = (filtering == QSGTexture::Linear); if (smooth == m_smooth) return; -- cgit v1.2.3