Improve handling of uniforms in webgl helper

This commit is contained in:
Olivier Guyot
2018-11-16 01:50:44 +01:00
parent 94524fb431
commit 530bcd0c88
3 changed files with 7 additions and 9 deletions

View File

@@ -100,7 +100,7 @@ class WebGLPointsLayerRenderer extends LayerRenderer {
renderFrame(frameState, layerState) {
this.context_.setUniformFloatValue(DefaultUniform.OPACITY, layerState.opacity);
this.context_.drawElements(0, this.indicesBuffer_.getArray().length);
this.context_.finalizeDraw();
this.context_.finalizeDraw(frameState);
return this.context_.getCanvas();
}