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();