Merge pull request #11696 from WenhaiLin/v3-label-shadow-glerror

Label:Fixed shadow effect cause OpenGL error on IOS.
This commit is contained in:
minggo 2015-05-06 09:53:39 +08:00
commit 6351863b3c
1 changed files with 5 additions and 2 deletions

View File

@ -912,8 +912,11 @@ void Label::onDraw(const Mat4& transform, bool transformUpdated)
{
glprogram->setUniformLocationWith4f(_uniformTextColor,
_shadowColor4F.r, _shadowColor4F.g, _shadowColor4F.b, _shadowColor4F.a);
glprogram->setUniformLocationWith4f(_uniformEffectColor,
_shadowColor4F.r, _shadowColor4F.g, _shadowColor4F.b, _shadowColor4F.a);
if (_currLabelEffect == LabelEffect::OUTLINE || _currLabelEffect == LabelEffect::GLOW)
{
glprogram->setUniformLocationWith4f(_uniformEffectColor,
_shadowColor4F.r, _shadowColor4F.g, _shadowColor4F.b, _shadowColor4F.a);
}
getGLProgram()->setUniformsForBuiltins(_shadowTransform);
for (const auto &child : _children)