diff --git a/lib/torque/renderer/ball.js b/lib/torque/renderer/ball.js index a46846b..3e216e2 100644 --- a/lib/torque/renderer/ball.js +++ b/lib/torque/renderer/ball.js @@ -42,7 +42,7 @@ BallRenderer.prototype = { }, addPoint: function(x, y, alpha){ var indexPos = this.getRIndexPos(x, y); - this.pointList[indexPos + 3] = this.pointList[indexPos + 3] + alpha; + this.pointLayer[indexPos + 3] = this.pointLayer[indexPos + 3] + alpha; }, horizontalLine: function(xi, yi, xf, yf, x0, y0){ function lineDistance(x,y){ diff --git a/lib/torque/renderer/point.js b/lib/torque/renderer/point.js index b1bc059..902b72c 100644 --- a/lib/torque/renderer/point.js +++ b/lib/torque/renderer/point.js @@ -247,7 +247,6 @@ var ballRenderer = require('./ball.js'); // } } } - this.ballRenderer.draw(); } prof.end(true);