aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/context2d/qquickcanvasitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/items/context2d/qquickcanvasitem.cpp')
-rw-r--r--src/quick/items/context2d/qquickcanvasitem.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/quick/items/context2d/qquickcanvasitem.cpp b/src/quick/items/context2d/qquickcanvasitem.cpp
index 2fda25b49a..9ca986501c 100644
--- a/src/quick/items/context2d/qquickcanvasitem.cpp
+++ b/src/quick/items/context2d/qquickcanvasitem.cpp
@@ -772,11 +772,9 @@ QSGNode *QQuickCanvasItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData
d->nodeTexture = texture;
node->setTexture(texture);
- const QSize ts = texture->textureSize();
- const QRectF srcRect(0, 0, ts.width(), ts.height());
- QSGGeometry::updateTexturedRectGeometry(node->geometry(),
- QRectF(QPoint(0, 0), d->canvasWindow.size()),
- texture->convertToNormalizedSourceRect(srcRect));
+ node->setTargetRect(QRectF(QPoint(0, 0), d->canvasWindow.size()));
+ node->setInnerTargetRect(QRectF(QPoint(0, 0), d->canvasWindow.size()));
+ node->update();
if (d->textureProvider) {
d->textureProvider->tex = d->nodeTexture;