diff --git a/lib/torque/renderer/ball.js b/lib/torque/renderer/ball.js index 3e216e2..86dbde2 100644 --- a/lib/torque/renderer/ball.js +++ b/lib/torque/renderer/ball.js @@ -115,10 +115,7 @@ BallRenderer.prototype = { }, invalidate: function(){ - if(!this.imageData) this.imageData = this.ctx.createImageData(this.width, this.height); - this.pointList = new Uint8ClampedArray(this.size * 4); - this.imageData.data.set(this.pointList); - this.ctx.putImageData(this.imageData, 0, 0); + this.pointLayer = this.contourLayer = this.isoplethLayer = new Uint8ClampedArray(this.size * 4); }, getRIndexPos: function(x,y){ var rIndexPos = (y*this.width+x)*4;