From 96941f6c55689c489996eb1629d7dff969189b37 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 23 Jun 2014 15:39:15 +0200 Subject: [PATCH] Use Atlas textures --- src/declarativeimports/core/svgitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/core/svgitem.cpp b/src/declarativeimports/core/svgitem.cpp index 1ed0631af..4ec6d5a06 100644 --- a/src/declarativeimports/core/svgitem.cpp +++ b/src/declarativeimports/core/svgitem.cpp @@ -152,7 +152,7 @@ QSGNode *SvgItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updateP //setContainsMultipleImages has to be done there since m_frameSvg can be shared with somebody else m_svg.data()->setContainsMultipleImages(!m_elementID.isEmpty()); const QImage image = m_svg.data()->image(QSize(width(), height()), m_elementID); - QSGTexture *texture = window()->createTextureFromImage(image); + QSGTexture *texture = window()->createTextureFromImage(image, QQuickWindow::TextureCanUseAtlas); if (m_smooth) { texture->setFiltering(QSGTexture::Linear); }