From e504f1a71189c463a4376e11ee4fe3f52bb4db31 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 15 Aug 2024 15:16:48 +0300 Subject: [PATCH] scene: Port away from GLTexture::update(QImage, QPoint, QRect) overload --- src/scene/imageitem.cpp | 2 +- src/scene/workspacescene_opengl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scene/imageitem.cpp b/src/scene/imageitem.cpp index a2e5bfcaad..72df2ccc94 100644 --- a/src/scene/imageitem.cpp +++ b/src/scene/imageitem.cpp @@ -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()); } } } diff --git a/src/scene/workspacescene_opengl.cpp b/src/scene/workspacescene_opengl.cpp index 00f2edc5f5..5db1a7f925 100644 --- a/src/scene/workspacescene_opengl.cpp +++ b/src/scene/workspacescene_opengl.cpp @@ -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(