scene: Port away from GLTexture::update(QImage, QPoint, QRect) overload

This commit is contained in:
Vlad Zahorodnii 2024-08-15 15:16:48 +03:00
parent 46e452127e
commit e504f1a711
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ void ImageItemOpenGL::preprocess()
m_texture->setFilter(GL_LINEAR);
m_texture->setWrapMode(GL_CLAMP_TO_EDGE);
} else {
m_texture->update(m_image);
m_texture->update(m_image, m_image.rect());
}
}
}

View file

@ -419,7 +419,7 @@ void SceneOpenGLDecorationRenderer::renderPart(const QRect &rect, const QRect &p
if (padding.left() == 0) {
dirtyOffset.rx() += TexturePad;
}
m_texture->update(image, textureOffset + dirtyOffset);
m_texture->update(image, image.rect(), textureOffset + dirtyOffset);
}
const QMargins SceneOpenGLDecorationRenderer::texturePadForPart(