summaryrefslogtreecommitdiffstats
path: root/src/graphicsitems/qxborderimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsitems/qxborderimage.cpp')
-rw-r--r--src/graphicsitems/qxborderimage.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/graphicsitems/qxborderimage.cpp b/src/graphicsitems/qxborderimage.cpp
index 44e9411..fb4055a 100644
--- a/src/graphicsitems/qxborderimage.cpp
+++ b/src/graphicsitems/qxborderimage.cpp
@@ -339,10 +339,7 @@ void QxBorderImagePrivate::updatePixmap()
QRect inner(border->left(), border->top(), pix.width() - border->right() - border->left(),
pix.height() - border->bottom() - border->top());
- if (!texture) {
- texture = QSGContext::current->textureManager()->requestUploadedTexture(pix.pixmap().toImage(),
- TextureManager::SynchronousUploadHint);
- } // ### gunnar: does not support changing images...
+ texture = QSGContext::current->textureManager()->upload(pix.pixmap().toImage());
node = new QxNinePatchNode(QRectF(0, 0, q->width(), q->height()), texture, inner, q->renderOpacity(), smooth);
q->setPaintNode(node);