Skip to content

Commit

Permalink
Fix reloadSymbolData error
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Wojciechowski committed Oct 21, 2015
1 parent 185eeef commit 5e2a0d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/source/tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ Tile.prototype = {
return;
}

this.buffers.glyphVertex.destroy(painter.gl);
this.buffers.glyphElement.destroy(painter.gl);
this.buffers.iconVertex.destroy(painter.gl);
this.buffers.iconElement.destroy(painter.gl);
this.buffers.collisionBoxVertex.destroy(painter.gl);
if (this.buffers.glyphVertex) this.buffers.glyphVertex.destroy(painter.gl);
if (this.buffers.glyphElement) this.buffers.glyphElement.destroy(painter.gl);
if (this.buffers.iconVertex) this.buffers.iconVertex.destroy(painter.gl);
if (this.buffers.iconElement) this.buffers.iconElement.destroy(painter.gl);
if (this.buffers.collisionBoxVertex) this.buffers.collisionBoxVertex.destroy(painter.gl);

var buffers = unserializeBuffers(data.buffers);
this.buffers.glyphVertex = buffers.glyphVertex;
Expand Down

0 comments on commit 5e2a0d7

Please sign in to comment.