Remove closePath() where clip() is used
clip() does an implicit closePath(), see https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Compositing#Clipping_paths
This commit is contained in:
@@ -224,7 +224,6 @@ ol.reproj.render = function(width, height, pixelRatio,
|
||||
context.lineTo(u1, v1);
|
||||
context.lineTo(u2, v2);
|
||||
}
|
||||
context.closePath();
|
||||
context.clip();
|
||||
|
||||
context.transform(
|
||||
|
||||
Reference in New Issue
Block a user