mirror of https://github.com/axmolengine/axmol.git
Merge remote-tracking branch 'upstream/gles20' into gles20
This commit is contained in:
commit
eeb89d2404
|
@ -101,7 +101,6 @@ bool CCAtlasNode::initWithTileFile(const char *tile, unsigned int tileWidth, uns
|
||||||
if (! m_pTextureAtlas)
|
if (! m_pTextureAtlas)
|
||||||
{
|
{
|
||||||
CCLOG("cocos2d: Could not initialize CCAtlasNode. Invalid Texture.");
|
CCLOG("cocos2d: Could not initialize CCAtlasNode. Invalid Texture.");
|
||||||
delete this;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -146,7 +146,6 @@ bool CCGridBase::initWithSize(const ccGridSize& gridSize)
|
||||||
if (! pTexture)
|
if (! pTexture)
|
||||||
{
|
{
|
||||||
CCLOG("cocos2d: CCGrid: error creating texture");
|
CCLOG("cocos2d: CCGrid: error creating texture");
|
||||||
delete this;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,9 +148,7 @@ bool CCTextureAtlas::initWithFile(const char * file, unsigned int capacity)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CCLOG("cocos2d: Could not open file: %s", file);
|
CCLOG("cocos2d: Could not open file: %s", file);
|
||||||
delete this;
|
return false;
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue