We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 144bf30 + 213d8fb commit 4cea5a8Copy full SHA for 4cea5a8
src/webgl/p5.RendererGL.js
@@ -996,7 +996,15 @@ p5.RendererGL = class RendererGL extends p5.Renderer {
996
// geometries/borders on this layer should always be invisible
997
this.filterGraphicsLayer.noStroke();
998
}
999
-
+ else if(
1000
+ this.filterGraphicsLayer.width !== this.width ||
1001
+ this.filterGraphicsLayer.height !== this.height ||
1002
+ this.filterGraphicsLayer.pixelDensity() !== this._pInst.pixelDensity()
1003
+ ){
1004
+ // Resize the graphics layer
1005
+ this.filterGraphicsLayer.resizeCanvas(this.width, this.height);
1006
+ this.filterGraphicsLayer.pixelDensity(this._pInst.pixelDensity());
1007
+ }
1008
1009
let pg = this.filterGraphicsLayer;
1010
0 commit comments