Just pass the bigger textures from the !m_fastPath to the textures cache
It's a really cheap lookup, and maybe we get to skip some textures uploading Reviewed by David Edmundson
This commit is contained in:
parent
ab0740228c
commit
daf7981820
@ -480,9 +480,7 @@ QSGNode *FrameSvgItem::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaint
|
||||
|
||||
if ((m_textureChanged || m_sizeChanged) || textureNode->texture()->textureSize() != m_frameSvg->size()) {
|
||||
QImage image = m_frameSvg->framePixmap().toImage();
|
||||
QSGTexture *texture = window()->createTextureFromImage(image);
|
||||
texture->setFiltering(QSGTexture::Nearest);
|
||||
textureNode->setTexture(QSharedPointer<QSGTexture>(texture));
|
||||
textureNode->setTexture(loadTexture(window(), image));
|
||||
textureNode->setRect(0, 0, width(), height());
|
||||
|
||||
m_textureChanged = false;
|
||||
|
Loading…
Reference in New Issue
Block a user