[Icon Item] Set filtering on FadingNode texture

Ensures the fading node's texture has the same filtering as the regular node,
otherwise during transition the icon could show scaling artefacts.

Differential Revision: https://phabricator.kde.org/D10533
This commit is contained in:
Kai Uwe Broulik 2018-02-15 13:32:57 +01:00
parent 581dc48ff8
commit c05b1bdec7

View File

@ -482,7 +482,9 @@ QSGNode* IconItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *update
delete oldNode;
QSGTexture *source = window()->createTextureFromImage(m_iconPixmap.toImage());
source->setFiltering(m_smooth ? QSGTexture::Linear : QSGTexture::Nearest);
QSGTexture *target = window()->createTextureFromImage(m_oldIconPixmap.toImage());
target->setFiltering(m_smooth ? QSGTexture::Linear : QSGTexture::Nearest);
animatingNode = new FadingNode(source, target);
m_sizeChanged = true;
m_textureChanged = false;