mirror of https://github.com/axmolengine/axmol.git
issue #2301: _pTextures --> _textures.
This commit is contained in:
parent
fa21674f6c
commit
8f33bf7e05
|
@ -139,7 +139,7 @@ void CCTextureCacheEmscripten::addImageAsyncCallBack_emscripten(AsyncStruct *dat
|
|||
#endif
|
||||
|
||||
// cache the texture
|
||||
_pTextures->setObject(texture, filename);
|
||||
_textures->setObject(texture, filename);
|
||||
texture->autorelease();
|
||||
|
||||
CCObject *target = data->target;
|
||||
|
@ -163,7 +163,7 @@ void CCTextureCacheEmscripten::addImageAsync(const char *path, CCObject *target,
|
|||
|
||||
// optimization
|
||||
std::string pathKey = CCFileUtils::sharedFileUtils()->fullPathForFilename(path);
|
||||
texture = (CCTexture2D*)_pTextures->objectForKey(pathKey.c_str());
|
||||
texture = (CCTexture2D*)_textures->objectForKey(pathKey.c_str());
|
||||
|
||||
std::string fullpath = pathKey;
|
||||
if (texture != NULL)
|
||||
|
|
Loading…
Reference in New Issue