From dcb196d45a00fe54ca412ba500e22547de2b2a65 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Fri, 20 Apr 2012 10:32:21 -0300 Subject: [PATCH] minor opengl1 optimization --- src/framework/graphics/painterogl1.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/framework/graphics/painterogl1.cpp b/src/framework/graphics/painterogl1.cpp index ccfcf0a1..2e6d7882 100644 --- a/src/framework/graphics/painterogl1.cpp +++ b/src/framework/graphics/painterogl1.cpp @@ -192,6 +192,9 @@ void PainterOGL1::setProjectionMatrix(const Matrix3& projectionMatrix) void PainterOGL1::setTextureMatrix(const Matrix2& textureMatrix) { + // avoid re-updating texture matrix + if(m_textureMatrix == textureMatrix) + return; m_textureMatrix = textureMatrix; updateGlTextureMatrix(); }