diff --git a/cocos/2d/CCLabel.cpp b/cocos/2d/CCLabel.cpp index 2135ad75eb..42a78e22c5 100644 --- a/cocos/2d/CCLabel.cpp +++ b/cocos/2d/CCLabel.cpp @@ -896,8 +896,8 @@ void Label::drawShadowWithoutBlur() void Label::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) { // Don't do calculate the culling if the transform was not updated -#if CC_USE_CULLING bool transformUpdated = flags & FLAGS_TRANSFORM_DIRTY; +#if CC_USE_CULLING _insideBounds = transformUpdated ? renderer->checkVisibility(transform, _contentSize) : _insideBounds; if(_insideBounds)