mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3049 from dumganhar/develop
LayerColor::initWithColor should return false when Layer::init() returns false.
This commit is contained in:
commit
fe42a722ae
|
@ -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 false;
|
||||
}
|
||||
|
||||
bool LayerColor::initWithColor(const ccColor4B& color)
|
||||
|
|
Loading…
Reference in New Issue