Skip to content

Commit

Permalink
remove redundant function calls to update tessy combine callback
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeplowden committed Sep 24, 2024
1 parent 3ffe8cc commit afdf29d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/webgl/p5.RendererGL.Immediate.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ p5.RendererGL.prototype.beginShape = function(mode) {
}
if (this.tessyVertexSize > 12){
this.tessyVertexSize = 12;
this._updateTessyCombineCallback();
}
this.immediateMode.geometry.reset();
this.immediateMode.contourIndices = [];
Expand Down Expand Up @@ -496,9 +495,6 @@ p5.RendererGL.prototype._tesselateShape = function() {
}
}
}
if (this.tessyVertexSize > 12){
this._updateTessyCombineCallback();
}
const polyTriangles = this._triangulate(contours);
const originalVertices = this.immediateMode.geometry.vertices;
this.immediateMode.geometry.vertices = [];
Expand Down

0 comments on commit afdf29d

Please sign in to comment.