From f15a9652d85f1cc3caf872c5c230d1a5551164a5 Mon Sep 17 00:00:00 2001 From: GaborFarkas Date: Tue, 21 Jun 2016 12:57:45 +0200 Subject: [PATCH] Fix rendering of boundaries. --- src/ol/render/webgl/imagereplay/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/render/webgl/imagereplay/index.js b/src/ol/render/webgl/imagereplay/index.js index 5e8eff36a2..a0b5306d8f 100644 --- a/src/ol/render/webgl/imagereplay/index.js +++ b/src/ol/render/webgl/imagereplay/index.js @@ -1202,7 +1202,7 @@ ol.render.webgl.LineStringReplay.prototype.drawCoordinates_ = function(flatCoord if (closed) { //Link the last triangle/rhombus to the first one. - this.indices_[numIndices++] = lastIndex; + this.indices_[numIndices++] = lastSign > 0 ? lastIndex : lastIndex - 1; this.indices_[numIndices++] = startIndex + 2; this.indices_[numIndices++] = startIndex;