Commit e459c8bf authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

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

parent 2af16f1e
......@@ -628,6 +628,9 @@ bool GLTexture::isYInverted() const
void GLTexture::setYInverted(bool inverted)
{
Q_D(GLTexture);
if (d->m_yInverted == inverted)
return;
d->m_yInverted = inverted;
d->updateMatrix();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment