mirror of https://github.com/axmolengine/axmol.git
Merge pull request #10420 from Sheado/FIX_10373
FIX for Build error when CC_USE_CULLING=0 #10373
This commit is contained in:
commit
cc56eae6f7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue