Skip to content

Commit

Permalink
fix sline rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Jan 20, 2015
1 parent d623ea4 commit c4560aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,13 +435,13 @@ exports.sline = function(structure, gl, opts) {
var vertAssoc =
new TraceVertexAssoc(structure, opts.splineDetail, 1, true);
var lineGeom = new LineGeom(gl, opts.float32Allocator);
lineGeom.addVertAssoc(vertAssoc);
lineGeom.setLineWidth(opts.lineWidth);
lineGeom.setShowRelated(opts.showRelated);
var traceIndex = 0;
structure.eachChain(function(chain) {
traceIndex = slineForChain(lineGeom, vertAssoc, opts, chain, traceIndex);
});
lineGeom.addVertAssoc(vertAssoc);
opts.color.end(structure);
console.timeEnd('sline');
return lineGeom;
Expand Down
1 change: 0 additions & 1 deletion src/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ function LineGeom(gl, float32Allocator) {
BaseGeom.call(this, gl);
this._vertArrays = [];
this._float32Allocator = float32Allocator;
this._vertAssocs = [];
this._lineWidth = 1.0;
}

Expand Down

0 comments on commit c4560aa

Please sign in to comment.