mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 17:49:21 +02:00
minor opengl1 optimization
This commit is contained in:
parent
affcd03e06
commit
dcb196d45a
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user