Skip to content

Commit d9cc368

Browse files
authored
passed unit test
1 parent 19aa6fe commit d9cc368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/p5.Renderer2D.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ class Renderer2D extends Renderer {
264264
shape.accept(visitor);
265265
if (this._clipping) {
266266
this.clipPath.addPath(visitor.path);
267+
this.clipPath.closePath();
267268
} else {
268269
if (this.states.fillColor) {
269270
this.drawingContext.fill(visitor.path);
@@ -272,7 +273,6 @@ class Renderer2D extends Renderer {
272273
this.drawingContext.stroke(visitor.path);
273274
}
274275
}
275-
this.clipPath.closePath();
276276
}
277277

278278
beginClip(options = {}) {

0 commit comments

Comments
 (0)