scene: Port away from GLTexture::update(QImage, QPoint, QRect) overload
This commit is contained in:
parent
46e452127e
commit
e504f1a711
2 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue