Skip to content

Commit

Permalink
Fix Label::draw skips drawing when batchNodes are more than one and h…
Browse files Browse the repository at this point in the history
…ave empty quads. cocos2d/cocos2d-x#20528
  • Loading branch information
u0u0 committed Jun 21, 2020
1 parent 97acec4 commit 650b4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos/2d/CCLabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@ void Label::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags)
{
auto textureAtlas = batchNode->getTextureAtlas();
if (!textureAtlas->getTotalQuads())
return;
continue;

auto &batch = _batchCommands[i++];
auto &&commands = batch.getCommandArray();
Expand Down

0 comments on commit 650b4e3

Please sign in to comment.