Skip to content

Commit

Permalink
Correct depth testing in background layers
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Dec 7, 2017
1 parent c673135 commit 5565087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/draw_background.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function drawBackground(painter: Painter, sourceCache: SourceCache, layer: Backg
if (painter.renderPass !== pass) return;

context.setStencilMode(StencilMode.disabled());
context.setDepthMode(painter.depthModeForSublayer(0, false));
context.setDepthMode(painter.depthModeForSublayer(0, true));
context.setColorMode(painter.colorModeForRenderPass());

const properties = new PossiblyEvaluated(fillLayerPaintProperties);
Expand Down

0 comments on commit 5565087

Please sign in to comment.