No need to recalculate the matrix if yInverted doesn't change
This commit is contained in:
parent
2af16f1ee0
commit
e459c8bf54
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue