summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksandar Stojiljkovic <aleksandar.stojiljkovic@mapbox.com>2020-03-01 09:58:08 +0200
committerAleksandar Stojiljković <aleksandar.stojiljkovic@mapbox.com>2020-03-02 12:19:58 +0200
commit42469cdb6655ded30367b2add553265770949d86 (patch)
treeea040dc60fa983a95a0e24f8693209a2372716cf /src
parent8c0f90ce84d2e9146ab183b5e7f77893d8b433eb (diff)
downloadqtlocation-mapboxgl-42469cdb6655ded30367b2add553265770949d86.tar.gz
Disable depth in heatmap offscreen rendering.
It triggers Metal depth stencil validation error since depth test is enabled with no depth attachment.
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/renderer/layers/render_heatmap_layer.cpp28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/mbgl/renderer/layers/render_heatmap_layer.cpp b/src/mbgl/renderer/layers/render_heatmap_layer.cpp
index 5f3c36e440..03a7d12fc4 100644
--- a/src/mbgl/renderer/layers/render_heatmap_layer.cpp
+++ b/src/mbgl/renderer/layers/render_heatmap_layer.cpp
@@ -130,21 +130,19 @@ void RenderHeatmapLayer::render(PaintParameters& parameters) {
checkRenderability(parameters, programInstance.activeBindingCount(allAttributeBindings));
- programInstance.draw(
- parameters.context,
- *renderPass,
- gfx::Triangles(),
- parameters.depthModeForSublayer(0, gfx::DepthMaskType::ReadOnly),
- gfx::StencilMode::disabled(),
- gfx::ColorMode::additive(),
- gfx::CullFaceMode::disabled(),
- *bucket.indexBuffer,
- bucket.segments,
- allUniformValues,
- allAttributeBindings,
- HeatmapProgram::TextureBindings{},
- getID()
- );
+ programInstance.draw(parameters.context,
+ *renderPass,
+ gfx::Triangles(),
+ gfx::DepthMode::disabled(),
+ gfx::StencilMode::disabled(),
+ gfx::ColorMode::additive(),
+ gfx::CullFaceMode::disabled(),
+ *bucket.indexBuffer,
+ bucket.segments,
+ allUniformValues,
+ allAttributeBindings,
+ HeatmapProgram::TextureBindings{},
+ getID());
}
} else if (parameters.pass == RenderPass::Translucent) {