Merge pull request #3049 from dumganhar/develop

LayerColor::initWithColor should return false when Layer::init() returns false.
This commit is contained in:
James Chen 2013-07-01 23:46:15 -07:00
commit fe42a722ae
1 changed files with 2 additions and 1 deletions

View File

@ -749,8 +749,9 @@ bool LayerColor::initWithColor(const ccColor4B& color, GLfloat w, GLfloat h)
setContentSize(CCSizeMake(w, h));
setShaderProgram(ShaderCache::sharedShaderCache()->programForKey(kShader_PositionColor));
return true;
}
return true;
return false;
}
bool LayerColor::initWithColor(const ccColor4B& color)