mirror of https://github.com/axmolengine/axmol.git
fixed #552, Treat the parameter of method CCTextureCache::removeTextureForKey() as relative path.
This commit is contained in:
parent
b684cbdc6c
commit
d892872d2f
|
@ -431,7 +431,8 @@ void CCTextureCache::removeTextureForKey(const char *textureKeyName)
|
|||
return;
|
||||
}
|
||||
|
||||
m_pTextures->removeObjectForKey(string(textureKeyName));
|
||||
string fullPath = CCFileUtils::fullPathFromRelativePath(textureKeyName);
|
||||
m_pTextures->removeObjectForKey(fullPath);
|
||||
}
|
||||
|
||||
CCTexture2D* CCTextureCache::textureForKey(const char* key)
|
||||
|
|
Loading…
Reference in New Issue