Remove GLTexturePrivate::bind()/unbind()
These virtual methods are not reimplemented anywhere.
This commit is contained in:
parent
59b5746351
commit
9d01ed16be
2 changed files with 4 additions and 14 deletions
|
@ -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)
|
||||
|
|
|
@ -42,8 +42,6 @@ public:
|
|||
GLTexturePrivate();
|
||||
virtual ~GLTexturePrivate();
|
||||
|
||||
virtual void bind();
|
||||
virtual void unbind();
|
||||
virtual void onDamage();
|
||||
|
||||
void updateMatrix();
|
||||
|
|
Loading…
Reference in a new issue