Skip to content

Commit

Permalink
Explicitly set clearColor in extruison drawing in case it was set oth…
Browse files Browse the repository at this point in the history
…erwise by background
  • Loading branch information
Lauren Budorick committed Nov 5, 2016
1 parent b2730ed commit fded0e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/render/draw_fill_extrusion.js
Expand Up @@ -23,6 +23,7 @@ function draw(painter, source, layer, coords) {
const texture = new ExtrusionTexture(gl, painter, layer);
texture.bindFramebuffer();

gl.clearColor(0, 0, 0, 0);
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);

for (let i = 0; i < coords.length; i++) {
Expand Down

0 comments on commit fded0e0

Please sign in to comment.