Skip to content

Commit

Permalink
Fix raster tiles flicker / crash
Browse files Browse the repository at this point in the history
fixes #2208
  • Loading branch information
Lucas Wojciechowski committed Mar 1, 2016
1 parent e7b551c commit 4058e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/render/draw_raster.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function drawRaster(painter, source, layer, coords) {
// Change depth function to prevent double drawing in areas where tiles overlap.
gl.depthFunc(gl.LESS);

for (var i = coords.length - 1; i >= 0; i--) {
for (var i = 0; i < coords.length; i++) {
drawRasterTile(painter, source, layer, coords[i]);
}

Expand Down

0 comments on commit 4058e8d

Please sign in to comment.