Skip to content

Commit 348b6fe

Browse files
committed
Update usage of window in copyToContext
1 parent 4861f18 commit 348b6fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webgl/p5.Shader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ class Shader {
526526
* <a href="#/p5.Graphics">p5.Graphics</a>, as in
527527
* `myShader.copyToContext(pg)`. The shader can also be copied from a
528528
* <a href="#/p5.Graphics">p5.Graphics</a> object to the main canvas using
529-
* the `window` variable, as in `myShader.copyToContext(window)`.
529+
* the `p5.instance` variable, as in `myShader.copyToContext(p5.instance)`.
530530
*
531531
* Note: A <a href="#/p5.Shader">p5.Shader</a> object created with
532532
* <a href="#/p5/createShader">createShader()</a>,
@@ -667,7 +667,7 @@ class Shader {
667667
* pg.shader(original);
668668
*
669669
* // Copy the original shader to the main canvas.
670-
* copied = original.copyToContext(window);
670+
* copied = original.copyToContext(p5.instance);
671671
*
672672
* // Apply the copied shader to the main canvas.
673673
* shader(copied);

0 commit comments

Comments
 (0)