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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5004>
This commit is contained in:
Seungha Yang 2023-07-10 22:56:30 +09:00 committed by GStreamer Marge Bot
parent 521ba8f65a
commit 31c1cf0150

View file

@ -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_;