From fef4c7b021a914278a60374d224baf31c1759972 Mon Sep 17 00:00:00 2001 From: sergey7c4 Date: Wed, 23 Mar 2016 16:59:36 +0500 Subject: [PATCH] Fixed unwanted smoothing --- src/pixi/renderers/canvas/CanvasRenderer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pixi/renderers/canvas/CanvasRenderer.js b/src/pixi/renderers/canvas/CanvasRenderer.js index 15e9c92ac..7842504d9 100644 --- a/src/pixi/renderers/canvas/CanvasRenderer.js +++ b/src/pixi/renderers/canvas/CanvasRenderer.js @@ -235,6 +235,11 @@ PIXI.CanvasRenderer.prototype.resize = function(width, height) this.view.style.width = this.width / this.resolution + "px"; this.view.style.height = this.height / this.resolution + "px"; } + + if(this.renderSession.smoothProperty) + { + this.context[this.renderSession.smoothProperty] = (this.renderSession.scaleMode === PIXI.scaleModes.LINEAR); + } }; /**