summaryrefslogtreecommitdiff
path: root/src/mbgl
diff options
context:
space:
mode:
authorMolly Lloyd <mollymerp@users.noreply.github.com>2018-02-06 10:56:42 -0800
committerGitHub <noreply@github.com>2018-02-06 10:56:42 -0800
commite03f7a4d1f067cd01eb3022811eddb0b1892801b (patch)
treed0e589b216255837a6e0a312f894e882f16691a5 /src/mbgl
parent26a00f6a3139a95ec098269a219d0765447b5853 (diff)
downloadqtlocation-mapboxgl-e03f7a4d1f067cd01eb3022811eddb0b1892801b.tar.gz
[core] align raster-dem tiles to pixel grid (#11119)
* align raster-dem tiles to pixel grid * revert ignored hillshade tests
Diffstat (limited to 'src/mbgl')
-rw-r--r--src/mbgl/renderer/layers/render_hillshade_layer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/renderer/layers/render_hillshade_layer.cpp b/src/mbgl/renderer/layers/render_hillshade_layer.cpp
index 7a767522c0..55702849df 100644
--- a/src/mbgl/renderer/layers/render_hillshade_layer.cpp
+++ b/src/mbgl/renderer/layers/render_hillshade_layer.cpp
@@ -136,14 +136,14 @@ void RenderHillshadeLayer::render(PaintParameters& parameters, RenderSource*) {
if (bucket.vertexBuffer && bucket.indexBuffer && !bucket.segments.empty()) {
// Draw only the parts of the tile that aren't drawn by another tile in the layer.
- draw(tile.matrix,
+ draw(parameters.matrixForTile(tile.id, true),
*bucket.vertexBuffer,
*bucket.indexBuffer,
bucket.segments,
tile.id);
} else {
// Draw the full tile.
- draw(tile.matrix,
+ draw(parameters.matrixForTile(tile.id, true),
parameters.staticData.rasterVertexBuffer,
parameters.staticData.quadTriangleIndexBuffer,
parameters.staticData.rasterSegments,