mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fix fireball/issues/7323, loading image should return an image resource (#2712)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user