No need to recalculate the matrix if yInverted doesn't change

This commit is contained in:
Aleix Pol 2020-06-23 14:58:48 +02:00
parent 2af16f1ee0
commit e459c8bf54

View file

@ -628,6 +628,9 @@ bool GLTexture::isYInverted() const
void GLTexture::setYInverted(bool inverted) void GLTexture::setYInverted(bool inverted)
{ {
Q_D(GLTexture); Q_D(GLTexture);
if (d->m_yInverted == inverted)
return;
d->m_yInverted = inverted; d->m_yInverted = inverted;
d->updateMatrix(); d->updateMatrix();
} }