diff --git a/cocos/2d/CCSprite.cpp b/cocos/2d/CCSprite.cpp index f0e48184b0..761362d678 100644 --- a/cocos/2d/CCSprite.cpp +++ b/cocos/2d/CCSprite.cpp @@ -673,11 +673,7 @@ void Sprite::draw(void) //TODO implement z order _quadCommand.init(0, _vertexZ, _texture->getName(), _shaderProgram, _blendFunc, &_quad, 1, _modelViewTransform); -// if(!culling()) -// { -// renderCommand->releaseToCommandPool(); -// } -// else +// if(culling()) { Director::getInstance()->getRenderer()->addCommand(&_quadCommand); }