minor opengl1 optimization

This commit is contained in:
Eduardo Bart 2012-04-20 10:32:21 -03:00
parent affcd03e06
commit dcb196d45a
1 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,9 @@ void PainterOGL1::setProjectionMatrix(const Matrix3& projectionMatrix)
void PainterOGL1::setTextureMatrix(const Matrix2& textureMatrix) void PainterOGL1::setTextureMatrix(const Matrix2& textureMatrix)
{ {
// avoid re-updating texture matrix
if(m_textureMatrix == textureMatrix)
return;
m_textureMatrix = textureMatrix; m_textureMatrix = textureMatrix;
updateGlTextureMatrix(); updateGlTextureMatrix();
} }