Remove superfluous function call
authorAlan Alpert <416365416c@gmail.com>
Sat, 17 Nov 2012 06:37:56 +0000 (22:37 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 29 Nov 2012 23:22:22 +0000 (00:22 +0100)
Because we just set pixmapChanged, we're certain to update the texture
in the next if block.

Change-Id: I83436f846a3e965b324ff6ebf057708fe8c3b82b
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/quick/items/qquickimage.cpp

index 632fddf..0da1855 100644 (file)
@@ -565,7 +565,6 @@ QSGNode *QQuickImage::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *)
     if (!node) {
         d->pixmapChanged = true;
         node = d->sceneGraphContext()->createImageNode();
-        node->setTexture(texture);
     }
 
     if (d->pixmapChanged) {