From fdff6588c6d31e1e5a739fd290c52c0a865c827d Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 15 Aug 2024 15:17:18 +0300 Subject: [PATCH] opengl: Drop GLTexture::update(QImage, QPoint, QRect) overload --- src/opengl/gltexture.cpp | 5 ----- src/opengl/gltexture.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/opengl/gltexture.cpp b/src/opengl/gltexture.cpp index 29a8e2efdc..4506dcd9be 100644 --- a/src/opengl/gltexture.cpp +++ b/src/opengl/gltexture.cpp @@ -146,11 +146,6 @@ void GLTexture::setSize(const QSize &size) d->updateMatrix(); } -void GLTexture::update(const QImage &image, const QPoint &offset, const QRect &src) -{ - update(image, src.isEmpty() ? image.rect() : src, offset); -} - void GLTexture::update(const QImage &image, const QRegion ®ion, const QPoint &offset) { if (image.isNull() || isNull()) { diff --git a/src/opengl/gltexture.h b/src/opengl/gltexture.h index 43671620ea..43c63a0f37 100644 --- a/src/opengl/gltexture.h +++ b/src/opengl/gltexture.h @@ -84,7 +84,6 @@ public: */ QMatrix4x4 matrix(TextureCoordinateType type) const; - void update(const QImage &image, const QPoint &offset = QPoint(0, 0), const QRect &src = QRect()); void update(const QImage &image, const QRegion ®ion, const QPoint &offset = QPoint()); void bind(); void unbind();