From 37d020bcf050153d12f11dfac3e575b82ace761c Mon Sep 17 00:00:00 2001 From: pandamicro Date: Sun, 12 Nov 2017 10:55:31 +0800 Subject: [PATCH] Remove useless updateImage actions --- cocos2d/core/textures/CCTexture2D.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cocos2d/core/textures/CCTexture2D.js b/cocos2d/core/textures/CCTexture2D.js index c0f191cc2c..dfdf36f4a3 100644 --- a/cocos2d/core/textures/CCTexture2D.js +++ b/cocos2d/core/textures/CCTexture2D.js @@ -748,19 +748,15 @@ game.once(game.EVENT_RENDERER_INITED, function () { } if (options.minFilter !== undefined) { this._minFilter = options.minFilter; - updateImage = true; } if (options.magFilter !== undefined) { this._magFilter = options.magFilter; - updateImage = true; } if (options.wrapS !== undefined) { this._wrapS = options.wrapS; - updateImage = true; } if (options.wrapT !== undefined) { this._wrapT = options.wrapT; - updateImage = true; } if (options.format !== undefined) { this._format = options.format;