Merge pull request #10420 from Sheado/FIX_10373

FIX for Build error when CC_USE_CULLING=0 #10373
This commit is contained in:
minggo 2015-02-10 11:18:42 +08:00
commit cc56eae6f7
1 changed files with 1 additions and 1 deletions

View File

@ -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)