diff --git a/src/shape/attributes.js b/src/shape/attributes.js index 5669c5d32e..334f796bbb 100644 --- a/src/shape/attributes.js +++ b/src/shape/attributes.js @@ -173,7 +173,10 @@ function attributes(p5, fn){ this.drawingContext.imageSmoothingEnabled = false; } } else { - this.setAttributes('antialias', false); + // Only change if necessary to prevent canvas recreation + if (this._renderer.attributes.antialias !== false) { + this.setAttributes('antialias', false); + } } return this; };