mirror of https://github.com/axmolengine/axmol.git
Merge pull request #11696 from WenhaiLin/v3-label-shadow-glerror
Label:Fixed shadow effect cause OpenGL error on IOS.
This commit is contained in:
commit
6351863b3c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue