Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/webgl/p5.RendererGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,15 @@ p5.RendererGL = class RendererGL extends p5.Renderer {
// geometries/borders on this layer should always be invisible
this.filterGraphicsLayer.noStroke();
}

else if(
this.filterGraphicsLayer.width !== this.width ||
this.filterGraphicsLayer.height !== this.height ||
this.filterGraphicsLayer.pixelDensity() !== this._pInst.pixelDensity()
){
// Resize the graphics layer
this.filterGraphicsLayer.resizeCanvas(this.width, this.height);
this.filterGraphicsLayer.pixelDensity(this._pInst.pixelDensity());
}

let pg = this.filterGraphicsLayer;

Expand Down