From 1d41990b26e75b5a88cb1e1c33226be17fa71367 Mon Sep 17 00:00:00 2001 From: Sergey Borovkov Date: Fri, 8 Jan 2016 22:19:06 +0300 Subject: [PATCH] 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 --- ext/qt/qtitem.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc index ca8e535..9dc058a 100644 --- a/ext/qt/qtitem.cc +++ b/ext/qt/qtitem.cc @@ -211,6 +211,7 @@ QtGLVideoItem::updatePaintNode(QSGNode * oldNode, tex = static_cast (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; -- 2.7.4