From 7ce113d7e5594d19a3a4da06b858342bc3c7939e Mon Sep 17 00:00:00 2001 From: halx99 Date: Fri, 12 Jun 2020 11:34:02 +0800 Subject: [PATCH] fix label not rendering --- cocos/2d/CCLabel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/CCLabel.cpp b/cocos/2d/CCLabel.cpp index aa99487826..d3dc963ec0 100644 --- a/cocos/2d/CCLabel.cpp +++ b/cocos/2d/CCLabel.cpp @@ -1902,7 +1902,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();