Skip to content

Commit

Permalink
Don't call drawCollisionDebug unless showCollisionBoxes == true (#…
Browse files Browse the repository at this point in the history
…2899)

fixes #2781
  • Loading branch information
lucaswoj authored Jul 20, 2016
1 parent 86349ac commit c78a89b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/render/draw_symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ function drawSymbols(painter, source, layer, coords) {

gl.enable(gl.DEPTH_TEST);

drawCollisionDebug(painter, source, layer, coords);
if (source.map.showCollisionBoxes) {
drawCollisionDebug(painter, source, layer, coords);
}
}

function drawLayerSymbols(painter, source, layer, coords, isText,
Expand Down

0 comments on commit c78a89b

Please sign in to comment.