summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/painter_line.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-07-08 16:23:13 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-07-11 18:39:50 -0700
commitae838b397b6e5ca85d30fe1a8b9ccbb74864a7a6 (patch)
treeb0c98220cab6a8ffed1c44a9f1f7e9ca71261bc6 /src/mbgl/renderer/painter_line.cpp
parenta27b5586e56f8d967a5df4e883225dca0e7ddc3e (diff)
downloadqtlocation-mapboxgl-ae838b397b6e5ca85d30fe1a8b9ccbb74864a7a6.tar.gz
[core] Move translatedMatrix to RenderTile
Diffstat (limited to 'src/mbgl/renderer/painter_line.cpp')
-rw-r--r--src/mbgl/renderer/painter_line.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mbgl/renderer/painter_line.cpp b/src/mbgl/renderer/painter_line.cpp
index 2137eabc03..ed1975f955 100644
--- a/src/mbgl/renderer/painter_line.cpp
+++ b/src/mbgl/renderer/painter_line.cpp
@@ -50,8 +50,9 @@ void Painter::renderLine(PaintParameters& parameters,
float x = state.getHeight() / 2.0f * std::tan(state.getPitch());
float extra = (topedgelength + x) / topedgelength - 1.0f;
- mat4 vtxMatrix =
- translatedMatrix(tile.matrix, properties.lineTranslate, tile.id, properties.lineTranslateAnchor);
+ mat4 vtxMatrix = tile.translatedMatrix(properties.lineTranslate,
+ properties.lineTranslateAnchor,
+ state);
setDepthSublayer(0);