From 00b73c569a379cce9032e23e2aa94ae120725b07 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Tue, 19 Sep 2017 10:28:29 +0800 Subject: [PATCH] Avoid minFilter & magFilter inconsistency --- cocos2d/core/textures/CCTexture2D.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cocos2d/core/textures/CCTexture2D.js b/cocos2d/core/textures/CCTexture2D.js index 8cabd64ba9..e0eb73b367 100644 --- a/cocos2d/core/textures/CCTexture2D.js +++ b/cocos2d/core/textures/CCTexture2D.js @@ -886,7 +886,8 @@ game.once(game.EVENT_RENDERER_INITED, function () { opts.width = this._image.width; opts.height = this._image.height; opts.premultiplyAlpha = !!premultiplied; - opts.minFilter = cc.view._antiAliasEnabled ? Filter.LINEAR : Filter.NEAREST; + var filter = cc.view._antiAliasEnabled ? Filter.LINEAR : Filter.NEAREST; + opts.minFilter = opts.magFilter = filter; this.update(opts); this._image = null;