diff --git a/cocos2d/core/assets/CCRenderTexture.js b/cocos2d/core/assets/CCRenderTexture.js index 694570c749..0d623bcba4 100644 --- a/cocos2d/core/assets/CCRenderTexture.js +++ b/cocos2d/core/assets/CCRenderTexture.js @@ -28,7 +28,7 @@ let RenderTexture = cc.Class({ this.width = Math.floor(width || cc.visibleRect.width); this.height = Math.floor(height || cc.visibleRect.height); - let opts = Texture2D._getSharedOptions(); + let opts = {}; opts.format = this._format; opts.width = width; opts.height = height; diff --git a/cocos2d/core/assets/CCTexture2D.js b/cocos2d/core/assets/CCTexture2D.js index 6ac027fe85..f15eb9e645 100644 --- a/cocos2d/core/assets/CCTexture2D.js +++ b/cocos2d/core/assets/CCTexture2D.js @@ -239,9 +239,7 @@ var Texture2D = cc.Class({ WrapMode: WrapMode, Filter: Filter, // predefined most common extnames - extnames: ['.png', '.jpg', '.jpeg', '.bmp', '.webp'], - - _getSharedOptions: _getSharedOptions + extnames: ['.png', '.jpg', '.jpeg', '.bmp', '.webp'] }, ctor () {