return refs to avoid matrix allocation/deallocation for untranslated layers

refs #189
This commit is contained in:
Konstantin Käfer
2014-05-14 17:21:12 +02:00
parent a27f8798ff
commit a9d559fe51
6 changed files with 11 additions and 10 deletions

View File

@@ -35,7 +35,7 @@ void Painter::renderPoint(PointBucket& bucket, const std::string& layer_name, co
imagePos = sprite->getPosition(sized_image, false);
}
const mat4 vtxMatrix = translatedMatrix(properties.translate, id, properties.translateAnchor);
const mat4 &vtxMatrix = translatedMatrix(properties.translate, id, properties.translateAnchor);
if (!imagePos.size) {
useProgram(dotShader->program);