Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Fix wrong #15065 nit fix
Browse files Browse the repository at this point in the history
Change in 3ffc14a
was a typo while addresssing review nit: while it didn't affect render tests it doesn't work properly in all cases.

Fixes: #14844, #14779, #15039
  • Loading branch information
astojilj committed Jul 19, 2019
1 parent bbea3d0 commit 1ae7ff4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mbgl/renderer/render_orchestrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1ae7ff4

Please sign in to comment.