mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
Avoid minFilter & magFilter inconsistency
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user