From 268f2fcc21e6389a3a54d42369d63f548e26b07d Mon Sep 17 00:00:00 2001 From: "Huabing.Xu" Date: Fri, 27 Dec 2013 13:52:44 +0800 Subject: [PATCH] adjust comment codes --- cocos/2d/CCSprite.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); }