fix fireball/issues/7323, loading image should return an image resource (#2712)

This commit is contained in:
Knox
2018-05-22 15:42:15 +08:00
committed by pandamicro
parent 29fa51c47b
commit fae2cfceab
+2 -1
View File
@@ -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) {