FIX for Build error when CC_USE_CULLING=0 #10373

Fix for build error when using CC_USE_CULLING
This commit is contained in:
Chad 2015-02-09 18:15:22 -08:00
parent 95bb2b7b7b
commit befbc0a14e
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) void Label::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags)
{ {
// Don't do calculate the culling if the transform was not updated // Don't do calculate the culling if the transform was not updated
#if CC_USE_CULLING
bool transformUpdated = flags & FLAGS_TRANSFORM_DIRTY; bool transformUpdated = flags & FLAGS_TRANSFORM_DIRTY;
#if CC_USE_CULLING
_insideBounds = transformUpdated ? renderer->checkVisibility(transform, _contentSize) : _insideBounds; _insideBounds = transformUpdated ? renderer->checkVisibility(transform, _contentSize) : _insideBounds;
if(_insideBounds) if(_insideBounds)