Drop the unused QGLContextPrivate::convertToGLFormat function

Change-Id: Iaa176fc6152162c91a3e3bd373a235883001975c
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
bb10
Giuseppe D'Angelo 2013-01-24 10:39:43 +01:00 committed by The Qt Project
parent 3eb588078e
commit 962edab745
2 changed files with 0 additions and 13 deletions

View File

@ -2139,18 +2139,6 @@ QGLExtensionFuncs& QGLContextPrivate::extensionFuncs(const QGLContext *)
return qt_extensionFuncs;
}
QImage QGLContextPrivate::convertToGLFormat(const QImage &image, bool force_premul,
GLenum texture_format)
{
QImage::Format target_format = image.format();
if (force_premul || image.format() != QImage::Format_ARGB32)
target_format = QImage::Format_ARGB32_Premultiplied;
QImage result(image.width(), image.height(), target_format);
convertToGLFormatHelper(result, image.convertToFormat(target_format), texture_format);
return result;
}
/*! \internal */
QGLTexture *QGLContextPrivate::bindTexture(const QImage &image, GLenum target, GLint format,
QGLContext::BindOptions options)

View File

@ -265,7 +265,6 @@ public:
QGLContext::BindOptions options);
QGLTexture *textureCacheLookup(const qint64 key, GLenum target);
void init(QPaintDevice *dev, const QGLFormat &format);
QImage convertToGLFormat(const QImage &image, bool force_premul, GLenum texture_format);
int maxTextureSize();
void cleanup();