Skip to content

Commit 468ab53

Browse files
committed
Fix constant usage on graphic that should be on the main instance
1 parent 7fd3c4f commit 468ab53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit/webgl/p5.RendererGL.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1224,13 +1224,14 @@ suite('p5.RendererGL', function() {
12241224
target.push();
12251225
target.background(0);
12261226
target.blendMode(mode);
1227-
target.rectMode(target.CENTER);
1227+
target.rectMode(myp5.CENTER);
12281228
target.noStroke();
12291229
target.fill(colorA);
12301230
target.rect(0, 0, target.width, target.height);
12311231
target.fill(colorB);
12321232
target.rect(0, 0, target.width, target.height);
12331233
target.pop();
1234+
console.log(`${colorA} ${mode} ${colorB}: ` + target.canvas.toDataURL())
12341235
return target.get(0, 0);
12351236
};
12361237

0 commit comments

Comments
 (0)