mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
qml: Mark material dirty when texture buffer is updated
Qt might not redraw the scene otherwise. https://bugzilla.gnome.org/show_bug.cgi?id=758286
This commit is contained in:
parent
0e6a8838dc
commit
1d41990b26
1 changed files with 1 additions and 0 deletions
|
@ -211,6 +211,7 @@ QtGLVideoItem::updatePaintNode(QSGNode * oldNode,
|
|||
tex = static_cast<GstQSGTexture *> (texNode->texture());
|
||||
tex->setCaps (this->priv->caps);
|
||||
tex->setBuffer (this->priv->buffer);
|
||||
texNode->markDirty(QSGNode::DirtyMaterial);
|
||||
|
||||
if (this->priv->force_aspect_ratio) {
|
||||
src.w = this->priv->display_width;
|
||||
|
|
Loading…
Reference in a new issue