qt6: Set sampler filtering method

QQuickItem::smooth property doesn't seem to be propagated to
newly created QSGSimpleTextureNode automatically.

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2793
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5004>
This commit is contained in:
Seungha Yang 2023-07-10 22:45:49 +09:00 committed by GStreamer Marge Bot
parent c79d16ae80
commit 521ba8f65a

View file

@ -291,7 +291,10 @@ Qt6GLVideoItem::updatePaintNode(QSGNode * oldNode,
gst_gl_context_activate (this->priv->other_context, TRUE);
if (!texNode) {
bool is_smooth = this->smooth ();
texNode = new GstQSG6OpenGLNode (this);
texNode->setFiltering (is_smooth ? QSGTexture::Filtering::Linear :
QSGTexture::Filtering::Nearest);
this->priv->m_node = texNode;
}