mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
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:
parent
c79d16ae80
commit
521ba8f65a
1 changed files with 3 additions and 0 deletions
|
@ -291,7 +291,10 @@ Qt6GLVideoItem::updatePaintNode(QSGNode * oldNode,
|
||||||
gst_gl_context_activate (this->priv->other_context, TRUE);
|
gst_gl_context_activate (this->priv->other_context, TRUE);
|
||||||
|
|
||||||
if (!texNode) {
|
if (!texNode) {
|
||||||
|
bool is_smooth = this->smooth ();
|
||||||
texNode = new GstQSG6OpenGLNode (this);
|
texNode = new GstQSG6OpenGLNode (this);
|
||||||
|
texNode->setFiltering (is_smooth ? QSGTexture::Filtering::Linear :
|
||||||
|
QSGTexture::Filtering::Nearest);
|
||||||
this->priv->m_node = texNode;
|
this->priv->m_node = texNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue