Label:fixed possible appear OpenGL error 0x500.

This commit is contained in:
Dhilan007 2014-04-01 15:03:17 +08:00
parent eadbca8ee7
commit 540c67f701
1 changed files with 1 additions and 1 deletions

View File

@ -1082,7 +1082,7 @@ void Label::drawTextSprite(Renderer *renderer, bool parentTransformUpdated)
if (_shadowEnabled && _shadowNode == nullptr)
{
_shadowNode = Sprite::createWithTexture(_textSprite->getTexture());
if (_shadowNode)
if (_shadowNode && _blendFuncDirty)
{
_shadowNode->setBlendFunc(_blendFunc);
}