diff --git a/src/core/shape/attributes.js b/src/core/shape/attributes.js index 61e9b9e8a0..b88ab13afd 100644 --- a/src/core/shape/attributes.js +++ b/src/core/shape/attributes.js @@ -375,11 +375,12 @@ p5.prototype.rectMode = function(m) { * */ p5.prototype.smooth = function() { - this.setAttributes('antialias', true); if (!this._renderer.isP3D) { if ('imageSmoothingEnabled' in this.drawingContext) { this.drawingContext.imageSmoothingEnabled = true; } + } else { + this.setAttributes('antialias', true); } return this; };