From fae2cfceabf2593bcaec27d9b5cf1c6c68ff0617 Mon Sep 17 00:00:00 2001 From: Knox Date: Tue, 22 May 2018 15:42:15 +0800 Subject: [PATCH] fix fireball/issues/7323, loading image should return an image resource (#2712) --- 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 d33d8f7a5e..8c0f46b9f7 100644 --- a/cocos2d/core/textures/CCTexture2D.js +++ b/cocos2d/core/textures/CCTexture2D.js @@ -407,7 +407,8 @@ var Texture2D = cc.Class({ // load image var self = this; cc.loader.load({ - url: this.url + url: this.url, + _owner: this }, function (err, image) { if (image) { if (CC_DEBUG && image instanceof cc.Texture2D) {