Merge pull request #11895 from super626/v3

fix #10767
This commit is contained in:
minggo 2015-05-20 11:20:47 +08:00
commit ba694beccb
1 changed files with 1 additions and 1 deletions

View File

@ -701,7 +701,7 @@ void Sprite3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags)
{
#if CC_USE_CULLING
// camera clipping
if(!Camera::getVisitingCamera()->isVisibleInFrustum(&this->getAABB()))
if(Camera::getVisitingCamera() && !Camera::getVisitingCamera()->isVisibleInFrustum(&this->getAABB()))
return;
#endif