Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable depth mode for heatmaps #9364

Merged
merged 1 commit into from
Mar 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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