summaryrefslogtreecommitdiff
path: root/src/renderer/painter_fill.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-05-14 17:21:12 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-05-14 17:21:51 +0200
commita9d559fe5158091f72f408dfa8d1d367f222348c (patch)
treee3533200a43de363b79a9fe9ab28a11ade1d4c09 /src/renderer/painter_fill.cpp
parenta27f8798ff1dd254abf2e19b91f0cb50dae364ad (diff)
downloadqtlocation-mapboxgl-a9d559fe5158091f72f408dfa8d1d367f222348c.tar.gz
return refs to avoid matrix allocation/deallocation for untranslated layers
refs #189
Diffstat (limited to 'src/renderer/painter_fill.cpp')
-rw-r--r--src/renderer/painter_fill.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer/painter_fill.cpp b/src/renderer/painter_fill.cpp
index 543df440d0..6193e30686 100644
--- a/src/renderer/painter_fill.cpp
+++ b/src/renderer/painter_fill.cpp
@@ -35,7 +35,7 @@ void Painter::renderFill(FillBucket& bucket, const std::string& layer_name, cons
stroke_color = fill_color;
}
- const mat4 vtxMatrix = translatedMatrix(properties.translate, id, properties.translateAnchor);
+ const mat4 &vtxMatrix = translatedMatrix(properties.translate, id, properties.translateAnchor);
// Because we're drawing top-to-bottom, and we update the stencil mask
// below, we have to draw the outline first (!)