Skip to content

Commit b43a4ad

Browse files
committed
Merge pull request cocos2d#2722 from dingpinglv/Iss1507_addImageAsync
Fixed : Added addImageAsync to cc.textureCache.
2 parents 87624ac + 6d56bfb commit b43a4ad

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cocos2d/core/textures/CCTextureCache.js

+1
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ if (cc._renderType === cc._RENDER_TYPE_CANVAS) {
362362
return tex;
363363
};
364364

365+
_p.addImageAsync = _p.addImage;
365366
_p = null;
366367

367368
} else {

cocos2d/core/textures/TexturesWebGL.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -901,5 +901,7 @@ cc._tmp.WebGLTextureCache = function () {
901901

902902
return tex;
903903
};
904-
_p = null;
904+
905+
_p.addImageAsync = _p.addImage;
906+
_p = null;
905907
};

0 commit comments

Comments
 (0)