fixed #552, Treat the parameter of method CCTextureCache::removeTextureForKey() as relative path.

This commit is contained in:
natural-law 2011-07-01 09:32:15 +08:00
parent b684cbdc6c
commit d892872d2f
1 changed files with 2 additions and 1 deletions

View File

@ -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)