Webgl points / get back the instructions array from the worker

This means we won't have to recreate a binary buffer (through a typed array)
on every `rebuildBuffer` call.
This commit is contained in:
Olivier Guyot
2019-05-16 23:10:16 +02:00
parent 65be907095
commit 8566cfc227
2 changed files with 4 additions and 1 deletions

View File

@@ -291,6 +291,8 @@ class WebGLPointsLayerRenderer extends WebGLLayerRenderer {
// saves the projection transform for the current frame state
this.renderTransform_ = projectionTransform;
makeInverseTransform(this.invertRenderTransform_, this.renderTransform_);
this.renderInstructions_ = new Float32Array(event.data.renderInstructions);
}
}.bind(this));
}