scripting: Make thumbnaills use linear filter

QSGImageNode ignores QSGTexture's filter, one has to specify it using
QSGImageNode::setFiltering().

In hindsight, we need to figure out how to integrate the lanczos filter
with window thumbnails and use it instead.

BUG: 441709
This commit is contained in:
Vlad Zahorodnii 2021-09-09 20:40:11 +03:00
parent 84426e8082
commit 46e2d51044

View file

@ -229,6 +229,7 @@ QSGNode *ThumbnailItemBase::updatePaintNode(QSGNode *oldNode, QQuickItem::Update
QSGImageNode *node = static_cast<QSGImageNode *>(oldNode);
if (!node) {
node = window()->createImageNode();
node->setFiltering(QSGTexture::Linear);
}
node->setTexture(m_provider->texture());