Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Ib Green committed Mar 28, 2019
1 parent ef86eaa commit 4be1822
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions modules/core/src/core/attribute.js
Expand Up @@ -66,11 +66,14 @@ export default class Attribute {
// Create buffer if needed
this.buffer =
this.buffer ||
new Buffer(this.gl, {
id: this.id,
target: this.target,
accessor: Object.assign({}, opts, {type: this.type})
});
new Buffer(
this.gl,
Object.assign({}, opts, {
id: this.id,
target: this.target,
type: this.type
})
);
this.buffer.setData({data: value});
this.type = this.buffer.accessor.type;
}
Expand Down

0 comments on commit 4be1822

Please sign in to comment.