summaryrefslogtreecommitdiff
path: root/src/mbgl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl')
-rw-r--r--src/mbgl/renderer/render_orchestrator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/renderer/render_orchestrator.cpp b/src/mbgl/renderer/render_orchestrator.cpp
index 303b778aac..4ce36434d2 100644
--- a/src/mbgl/renderer/render_orchestrator.cpp
+++ b/src/mbgl/renderer/render_orchestrator.cpp
@@ -349,9 +349,11 @@ std::unique_ptr<RenderTree> RenderOrchestrator::createRenderTree(const UpdatePar
if (renderLayer.needsPlacement()) {
layersNeedPlacement.emplace_back(renderLayer);
}
- if (renderLayer.is3D() && renderTreeParameters->opaquePassCutOff == 0) {
+ if (renderTreeParameters->opaquePassCutOff == 0) {
--opaquePassCutOffEstimation;
- renderTreeParameters->opaquePassCutOff = uint32_t(opaquePassCutOffEstimation);
+ if (renderLayer.is3D()) {
+ renderTreeParameters->opaquePassCutOff = uint32_t(opaquePassCutOffEstimation);
+ }
}
}
// Symbol placement.