fixed #911: add some comment

This commit is contained in:
minggo 2011-12-22 16:29:25 +08:00
parent 7422a424da
commit 12237cf288
1 changed files with 3 additions and 1 deletions

View File

@ -469,7 +469,6 @@ CCTexture2D * CCTextureCache::addPVRImage(const char* path)
return tex;
}
CCTexture2D* CCTextureCache::addUIImage(CCImage *image, const char *key)
{
CCAssert(image != NULL, "TextureCache: image MUST not be nill");
@ -482,6 +481,9 @@ CCTexture2D* CCTextureCache::addUIImage(CCImage *image, const char *key)
forKey = CCFileUtils::fullPathFromRelativePath(key);
}
// Don't have to lock here, because addImageAsync() will not
// invoke opengl function in loading thread.
do
{
// If key is nil, then create a new texture each time