Remove SceneOpenGL::Texture::load(QImage)
It's never called.
This commit is contained in:
parent
ff096e532f
commit
49c8827345
2 changed files with 0 additions and 8 deletions
|
@ -787,13 +787,6 @@ bool SceneOpenGL::Texture::load(xcb_pixmap_t pix, const QSize &size, int depth)
|
|||
return d->loadTexture(pix, size, depth);
|
||||
}
|
||||
|
||||
bool SceneOpenGL::Texture::load(const QImage& image, GLenum target)
|
||||
{
|
||||
if (image.isNull())
|
||||
return false;
|
||||
return load(QPixmap::fromImage(image), target);
|
||||
}
|
||||
|
||||
bool SceneOpenGL::Texture::load(const QPixmap& pixmap, GLenum target)
|
||||
{
|
||||
if (pixmap.isNull())
|
||||
|
|
|
@ -166,7 +166,6 @@ public:
|
|||
Texture & operator = (const Texture& tex);
|
||||
|
||||
using GLTexture::load;
|
||||
virtual bool load(const QImage& image, GLenum target = GL_TEXTURE_2D);
|
||||
virtual bool load(const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D);
|
||||
virtual void discard();
|
||||
bool update(const QRegion &damage);
|
||||
|
|
Loading…
Reference in a new issue