mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
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:
parent
521ba8f65a
commit
31c1cf0150
1 changed files with 5 additions and 1 deletions
|
@ -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_;
|
||||
|
|
Loading…
Reference in a new issue