Remove GLTexturePrivate::bind()/unbind()

These virtual methods are not reimplemented anywhere.
This commit is contained in:
Fredrik Höglund 2014-11-26 21:40:11 +01:00
parent 59b5746351
commit 9d01ed16be
2 changed files with 4 additions and 14 deletions

View file

@ -297,15 +297,12 @@ void GLTexture::discard()
d_ptr = new GLTexturePrivate();
}
void GLTexturePrivate::bind()
{
glBindTexture(m_target, m_texture);
}
void GLTexture::bind()
{
Q_D(GLTexture);
d->bind();
glBindTexture(d->m_target, d->m_texture);
if (d->m_markedDirty) {
d->onDamage();
}
@ -340,15 +337,10 @@ void GLTexture::bind()
}
}
void GLTexturePrivate::unbind()
{
glBindTexture(m_target, 0);
}
void GLTexture::unbind()
{
Q_D(GLTexture);
d->unbind();
glBindTexture(d->m_target, 0);
}
void GLTexture::render(QRegion region, const QRect& rect, bool hardwareClipping)

View file

@ -42,8 +42,6 @@ public:
GLTexturePrivate();
virtual ~GLTexturePrivate();
virtual void bind();
virtual void unbind();
virtual void onDamage();
void updateMatrix();