Skip to content

Commit

Permalink
Don't remove and readd the actor when rebuilding webgl points.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Apr 11, 2019
1 parent 0de397f commit e197e97
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/webgl/pointFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,14 +456,10 @@ var webgl_pointFeature = function (arg) {
* @returns {this}
*/
this._build = function () {

if (m_actor) {
m_this.renderer().contextRenderer().removeActor(m_actor);
}

createGLPoints();

m_this.renderer().contextRenderer().addActor(m_actor);
if (!m_this.renderer().contextRenderer().hasActor(m_actor)) {
m_this.renderer().contextRenderer().addActor(m_actor);
}
m_this.renderer().contextRenderer().render();
m_this.buildTime().modified();
return m_this;
Expand Down

0 comments on commit e197e97

Please sign in to comment.