Skip to content

Commit c91eb44

Browse files
committed
fixes
1 parent 3d7d1c5 commit c91eb44

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/p5.Renderer2D.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ class Renderer2D extends Renderer {
7474
this.filterRenderer = new FilterRenderer2D(this);
7575
}
7676
// Set and return p5.Element
77-
// this.wrappedElt = new Element(this.elt, this._pInst);
78-
// Pass the *sketch* (p5) instance, not the Graphics buffer itself
79-
const sketch = this._pInst && this._pInst._pInst ? this._pInst._pInst : this._pInst;
80-
this.wrappedElt = new Element(this.elt, sketch);
77+
this.wrappedElt = new Element(this.elt, this._pInst);
8178
this.clipPath = null;
8279
}
8380

0 commit comments

Comments
 (0)