Avoid minFilter & magFilter inconsistency

This commit is contained in:
pandamicro
2017-09-19 10:28:29 +08:00
parent 870f900f6c
commit 00b73c569a
+2 -1
View File
@@ -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;