qml: Mark material dirty when texture buffer is updated
authorSergey Borovkov <serge.borovkov@gmail.com>
Fri, 8 Jan 2016 19:19:06 +0000 (22:19 +0300)
committerMatthew Waters <matthew@centricular.com>
Fri, 15 Jan 2016 03:11:52 +0000 (14:11 +1100)
Qt might not redraw the scene otherwise.

https://bugzilla.gnome.org/show_bug.cgi?id=758286

ext/qt/qtitem.cc

index ca8e535..9dc058a 100644 (file)
@@ -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;