Added clear of the render Buffers on Source Change

This commit is contained in:
Kai-W
2019-03-28 17:21:43 +01:00
committed by GitHub
parent 7091ed3de6
commit 275a22b685

View File

@@ -272,6 +272,8 @@ class WebGLPointsLayerRenderer extends LayerRenderer {
if (this.sourceRevision_ < vectorSource.getRevision()) { if (this.sourceRevision_ < vectorSource.getRevision()) {
this.sourceRevision_ = vectorSource.getRevision(); this.sourceRevision_ = vectorSource.getRevision();
this.verticesBuffer_.getArray().length = 0;
this.indicesBuffer_.getArray().length = 0;
const viewState = frameState.viewState; const viewState = frameState.viewState;
const projection = viewState.projection; const projection = viewState.projection;