Skip to content

Commit 0c5a7a5

Browse files
committed
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 into Iss2698_namespace
2 parents e095e90 + b43a4ad commit 0c5a7a5

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)