summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2016-02-15 14:11:44 +1100
committerAndy Nichols <andy.nichols@theqtcompany.com>2016-02-16 08:54:05 +0000
commit3a22766e8c4ea39836f197552e92b3cc78e77f62 (patch)
tree071a46d1351465fc6ad16c3ab39a49765b52c81e
parent040d9da184f69ce548951e674353083967c137a2 (diff)
Fix Image smoothing not workingr2d-5.6.0r2d-5.6
Linear interpolation should be interpreted as smooth rather than nearest neighbor. Task-number: QTBUG-51122 Change-Id: I6ac1fe806c16671aec383e0a235fef41e5e9105f Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
-rw-r--r--src/plugins/scenegraph/softwarecontext/imagenode.cpp2
1 files changed, 1 insertions, 1 deletions
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;