From fa6287c21c8a0559eb959bc6d0dcc818e0b804a8 Mon Sep 17 00:00:00 2001 From: Jare Guo Date: Tue, 26 Sep 2017 22:44:31 +0800 Subject: [PATCH] fix texture url on native --- jsb/jsb-loader.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jsb/jsb-loader.js b/jsb/jsb-loader.js index 0df24411f4..d380758abc 100644 --- a/jsb/jsb-loader.js +++ b/jsb/jsb-loader.js @@ -82,6 +82,7 @@ function loadImage (item, callback) { else if (url.match(jsb.urlRegExp)) { jsb.loadRemoteImg(url, function(succeed, tex) { if (succeed) { + tex.url = url; callback && callback(null, tex); } else { @@ -92,6 +93,7 @@ function loadImage (item, callback) { else { var addImageCallback = function (tex) { if (tex instanceof cc.Texture2D) { + tex.url = url; callback && callback(null, tex); } else {