Mark the canvas texture dirty when we change it.
authorGunnar Sletta <gunnar.sletta@digia.com>
Thu, 25 Apr 2013 10:34:29 +0000 (12:34 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 26 Apr 2013 06:42:28 +0000 (08:42 +0200)
Because the texture is the same instance and the rect is the same,
the early-out checks in QSGSimpleTextureNode will abort.

Task-number: QTBUG-30666
Change-Id: I0e6a1fd3d4de33436057e8cdf62dc0e7964b5c21
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
src/quick/items/context2d/qquickcanvasitem.cpp

index 3efb1ae..0c58b9b 100644 (file)
@@ -701,6 +701,7 @@ QSGNode *QQuickCanvasItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData
         d->context->flush();
 
     node->setTexture(d->context->texture());
+    node->markDirty(QSGNode::DirtyMaterial);
     node->setRect(QRectF(QPoint(0, 0), d->canvasWindow.size()));
     return node;
 }