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)
|
||||
{
|
||||
CCLOG("cocos2d: Could not initialize CCAtlasNode. Invalid Texture.");
|
||||
delete this;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -146,7 +146,6 @@ bool CCGridBase::initWithSize(const ccGridSize& gridSize)
|
|||
if (! pTexture)
|
||||
{
|
||||
CCLOG("cocos2d: CCGrid: error creating texture");
|
||||
delete this;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -148,9 +148,7 @@ bool CCTextureAtlas::initWithFile(const char * file, unsigned int capacity)
|
|||
else
|
||||
{
|
||||
CCLOG("cocos2d: Could not open file: %s", file);
|
||||
delete this;
|
||||
|
||||
return NULL;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue