Remove SceneOpenGL::Texture::update()
The default implementation is a no-op, and none of the current backends reimplement it.
This commit is contained in:
parent
210df22b17
commit
fc56ac28fb
2 changed files with 0 additions and 16 deletions
|
@ -793,12 +793,6 @@ void SceneOpenGL::Texture::findTarget()
|
|||
d->findTarget();
|
||||
}
|
||||
|
||||
bool SceneOpenGL::Texture::update(const QRegion &damage)
|
||||
{
|
||||
Q_D(Texture);
|
||||
return d->update(damage);
|
||||
}
|
||||
|
||||
//****************************************
|
||||
// SceneOpenGL::Texture
|
||||
//****************************************
|
||||
|
@ -810,12 +804,6 @@ SceneOpenGL::TexturePrivate::~TexturePrivate()
|
|||
{
|
||||
}
|
||||
|
||||
bool SceneOpenGL::TexturePrivate::update(const QRegion &damage)
|
||||
{
|
||||
Q_UNUSED(damage)
|
||||
return true;
|
||||
}
|
||||
|
||||
//****************************************
|
||||
// SceneOpenGL::Window
|
||||
//****************************************
|
||||
|
@ -1201,11 +1189,9 @@ bool OpenGLWindowPixmap::bind()
|
|||
{
|
||||
if (!m_texture->isNull()) {
|
||||
if (!toplevel()->damage().isEmpty()) {
|
||||
const bool success = m_texture->update(toplevel()->damage());
|
||||
// mipmaps need to be updated
|
||||
m_texture->setDirty();
|
||||
toplevel()->resetDamage();
|
||||
return success;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -146,7 +146,6 @@ public:
|
|||
virtual void findTarget() = 0;
|
||||
virtual bool loadTexture(xcb_pixmap_t pix, const QSize &size, int depth) = 0;
|
||||
virtual OpenGLBackend *backend() = 0;
|
||||
virtual bool update(const QRegion &damage);
|
||||
|
||||
protected:
|
||||
TexturePrivate();
|
||||
|
@ -167,7 +166,6 @@ public:
|
|||
|
||||
using GLTexture::load;
|
||||
virtual void discard();
|
||||
bool update(const QRegion &damage);
|
||||
|
||||
protected:
|
||||
void findTarget();
|
||||
|
|
Loading…
Reference in a new issue