mirror of https://github.com/axmolengine/axmol.git
FIX for Build error when CC_USE_CULLING=0 #10373
Fix for build error when using CC_USE_CULLING
This commit is contained in:
parent
95bb2b7b7b
commit
befbc0a14e
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue