summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksandar Stojiljkovic <aleksandar.stojiljkovic@mapbox.com>2019-06-06 10:06:18 +0300
committerAleksandar Stojiljkovic <aleksandar.stojiljkovic@mapbox.com>2019-06-06 11:21:37 +0300
commit0bab9127d719c1ba2d6eb85096f93f600f9aa833 (patch)
tree315efd05c1390a1d05753c331bb9dc252f97ac4c
parent198ed888e35d97b6fad8f01101282111a0fa650e (diff)
downloadqtlocation-mapboxgl-0bab9127d719c1ba2d6eb85096f93f600f9aa833.tar.gz
[core] Use unique ID in hillshade and hillshade_prepare draw.
-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 b3c01941b9..aa34814036 100644
--- a/src/mbgl/renderer/layers/render_hillshade_layer.cpp
+++ b/src/mbgl/renderer/layers/render_hillshade_layer.cpp
@@ -120,7 +120,7 @@ void RenderHillshadeLayer::render(PaintParameters& parameters) {
allUniformValues,
allAttributeBindings,
textureBindings,
- getID()
+ getID() + "/" + util::toString(id)
);
};
@@ -187,7 +187,7 @@ void RenderHillshadeLayer::render(PaintParameters& parameters) {
HillshadePrepareProgram::TextureBindings{
textures::image::Value{ bucket.dem->getResource() },
},
- getID()
+ getID() + "/p/" + util::toString(tile.id)
);
bucket.texture = std::move(view->getTexture());
bucket.setPrepared(true);