Skip to content

Commit 1d65c63

Browse files
committed
Does using a smaller size fix it?
1 parent ac792bc commit 1d65c63

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/webgl/p5.Framebuffer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,6 @@ class Framebuffer {
10681068
// this.renderer.setCamera(this.defaultCamera);
10691069
this.renderer.states.setValue('curCamera', this.defaultCamera);
10701070
// set the projection matrix (which is not normally updated each frame)
1071-
debugger
10721071
this.renderer.states.setValue('uPMatrix', this.renderer.states.uPMatrix.clone());
10731072
this.renderer.states.uPMatrix.set(this.defaultCamera.projMatrix);
10741073
this.renderer.states.setValue('uViewMatrix', this.renderer.states.uViewMatrix.clone());

test/unit/visual/cases/typography.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ visualSuite("Typography", function () {
279279

280280
p5.createCanvas(150, 100, mode === 'webgl' ? p5.WEBGL : undefined);
281281
if (mode === 'webgl') p5.translate(-p5.width/2, -p5.height/2);
282-
p5.textSize(20);
282+
p5.textSize(19.9);
283283
p5.textWrap(p5.CHAR);
284284
const font = await p5.loadFont(
285285
'/unit/assets/Inconsolata-Bold.ttf'
@@ -295,7 +295,6 @@ visualSuite("Typography", function () {
295295
p5.background(255);
296296
p5.push();
297297
p5.textAlign(alignment.alignX, alignment.alignY);
298-
p5.textWrap(p5.CHAR);
299298

300299
p5.noFill();
301300
p5.strokeWeight(2);

test/unit/webgl/p5.Framebuffer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ suite('p5.Framebuffer', function() {
4848
myp5.box(5, 5, 5);
4949
});
5050

51-
console.log(myp5._renderer.states.uPMatrix.mat4)
5251
// Draw the framebuffer to the canvas
5352
myp5.background(0);
5453
myp5.noStroke();

0 commit comments

Comments
 (0)