Skip to content

Commit

Permalink
disable depth mode for heatmaps (mapbox#9364)
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner authored and mike-unearth committed Mar 18, 2020
1 parent 0b093e5 commit c48bf1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/render/draw_heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ function drawHeatmap(painter: Painter, sourceCache: SourceCache, layer: HeatmapS
const context = painter.context;
const gl = context.gl;

const depthMode = painter.depthModeForSublayer(0, DepthMode.ReadOnly);
// Allow kernels to be drawn across boundaries, so that
// large kernels are not clipped to tiles
const stencilMode = StencilMode.disabled;
Expand All @@ -55,7 +54,7 @@ function drawHeatmap(painter: Painter, sourceCache: SourceCache, layer: HeatmapS
const program = painter.useProgram('heatmap', programConfiguration);
const {zoom} = painter.transform;

program.draw(context, gl.TRIANGLES, depthMode, stencilMode, colorMode, CullFaceMode.disabled,
program.draw(context, gl.TRIANGLES, DepthMode.disabled, stencilMode, colorMode, CullFaceMode.disabled,
heatmapUniformValues(coord.posMatrix,
tile, zoom, layer.paint.get('heatmap-intensity')),
layer.id, bucket.layoutVertexBuffer, bucket.indexBuffer,
Expand Down

0 comments on commit c48bf1f

Please sign in to comment.