From 31c1cf0150cfb617c09dcff4548952ded78cf836 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Mon, 10 Jul 2023 22:56:30 +0900 Subject: [PATCH] qt6d3d11: 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: --- .../gst-plugins-bad/ext/qt6d3d11/gstqt6d3d11videoitem.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/qt6d3d11/gstqt6d3d11videoitem.cpp b/subprojects/gst-plugins-bad/ext/qt6d3d11/gstqt6d3d11videoitem.cpp index 3229e91cf0..083f9a21f6 100644 --- a/subprojects/gst-plugins-bad/ext/qt6d3d11/gstqt6d3d11videoitem.cpp +++ b/subprojects/gst-plugins-bad/ext/qt6d3d11/gstqt6d3d11videoitem.cpp @@ -225,8 +225,12 @@ GstQt6D3D11VideoItem::updatePaintNode (QSGNode * old_node, GST_TRACE ("%p updatePaintNode", this); - if (!new_node) + if (!new_node) { + bool is_smooth = this->smooth (); new_node = new GstQSG6D3D11Node (this, qt_device_); + new_node->setFiltering (is_smooth ? QSGTexture::Filtering::Linear : + QSGTexture::Filtering::Nearest); + } if (force_aspect_ratio_ && caps_) { src.w = display_width_;