Skip to content

Commit 248bbef

Browse files
author
Lauren McCarthy
committed
Merge pull request #850 from zenozeng/master
Fix pInst in p5.Graphics
2 parents a79920c + 45b59d7 commit 248bbef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/p5.Graphics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ p5.Graphics = function(w, h, renderer, pInst) {
3636
this.pixelDensity = pInst.pixelDensity;
3737

3838
if (r === constants.WEBGL) {
39-
this._graphics = new p5.Renderer3D(c, this, false);
39+
this._graphics = new p5.Renderer3D(c, pInst, false);
4040
} else {
41-
this._graphics = new p5.Renderer2D(c, this, false);
41+
this._graphics = new p5.Renderer2D(c, pInst, false);
4242
}
4343

4444
this._graphics.resize(w, h);

0 commit comments

Comments
 (0)