From: Gunnar Sletta Date: Thu, 25 Apr 2013 10:34:29 +0000 (+0200) Subject: Mark the canvas texture dirty when we change it. X-Git-Tag: upstream/5.2.1~798^2~125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a32ee8627348317befa455537c2437805ff14e0e;p=platform%2Fupstream%2Fqtdeclarative.git Mark the canvas texture dirty when we change it. 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 --- diff --git a/src/quick/items/context2d/qquickcanvasitem.cpp b/src/quick/items/context2d/qquickcanvasitem.cpp index 3efb1ae..0c58b9b 100644 --- a/src/quick/items/context2d/qquickcanvasitem.cpp +++ b/src/quick/items/context2d/qquickcanvasitem.cpp @@ -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; }