mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-19 04:48:22 +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
3bdcdedfa0
commit
155f0acfab
|
@ -211,6 +211,7 @@ QtGLVideoItem::updatePaintNode(QSGNode * oldNode,
|
||||||
tex = static_cast<GstQSGTexture *> (texNode->texture());
|
tex = static_cast<GstQSGTexture *> (texNode->texture());
|
||||||
tex->setCaps (this->priv->caps);
|
tex->setCaps (this->priv->caps);
|
||||||
tex->setBuffer (this->priv->buffer);
|
tex->setBuffer (this->priv->buffer);
|
||||||
|
texNode->markDirty(QSGNode::DirtyMaterial);
|
||||||
|
|
||||||
if (this->priv->force_aspect_ratio) {
|
if (this->priv->force_aspect_ratio) {
|
||||||
src.w = this->priv->display_width;
|
src.w = this->priv->display_width;
|
||||||
|
|
Loading…
Reference in a new issue