mirror of https://github.com/axmolengine/axmol.git
issue #7, correct an error
This commit is contained in:
parent
9934149257
commit
e631a65d9f
|
@ -245,7 +245,7 @@ CCTexture2D * CCTextureCache::addPVRTCImage(const char* fileimage)
|
||||||
NSAssert(fileimage != NULL, "TextureCache: fileimage MUST not be nill");
|
NSAssert(fileimage != NULL, "TextureCache: fileimage MUST not be nill");
|
||||||
|
|
||||||
CCTexture2D * tex;
|
CCTexture2D * tex;
|
||||||
std:string key(fileimage);
|
std::string key(fileimage);
|
||||||
if( (tex = m_pTextures->objectForKey(key)) )
|
if( (tex = m_pTextures->objectForKey(key)) )
|
||||||
{
|
{
|
||||||
return tex;
|
return tex;
|
||||||
|
|
Loading…
Reference in New Issue