mirror of https://github.com/axmolengine/axmol.git
Label:fixed possible appear OpenGL error 0x500.
This commit is contained in:
parent
eadbca8ee7
commit
540c67f701
|
@ -1082,7 +1082,7 @@ void Label::drawTextSprite(Renderer *renderer, bool parentTransformUpdated)
|
||||||
if (_shadowEnabled && _shadowNode == nullptr)
|
if (_shadowEnabled && _shadowNode == nullptr)
|
||||||
{
|
{
|
||||||
_shadowNode = Sprite::createWithTexture(_textSprite->getTexture());
|
_shadowNode = Sprite::createWithTexture(_textSprite->getTexture());
|
||||||
if (_shadowNode)
|
if (_shadowNode && _blendFuncDirty)
|
||||||
{
|
{
|
||||||
_shadowNode->setBlendFunc(_blendFunc);
|
_shadowNode->setBlendFunc(_blendFunc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue