Skip to content

Commit

Permalink
pass new parameters to attribute.updateBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed May 15, 2019
1 parent 44175af commit 11f2a11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/core/src/lib/attribute-manager.js
Expand Up @@ -392,7 +392,9 @@ export default class AttributeManager {
return invalidatedAttributes;
}

_updateAttribute({attribute, numInstances, bufferLayout, data, props, context}) {
_updateAttribute(opts) {
const {attribute, numInstances} = opts;

if (attribute.allocate(numInstances)) {
logFunctions.onUpdate({
level: LOG_DETAIL_PRIORITY,
Expand All @@ -404,7 +406,7 @@ export default class AttributeManager {
// Calls update on any buffers that need update
const timeStart = Date.now();

const updated = attribute.updateBuffer({numInstances, bufferLayout, data, props, context});
const updated = attribute.updateBuffer(opts);
if (updated) {
this.needsRedraw = true;

Expand Down

0 comments on commit 11f2a11

Please sign in to comment.