diff --git a/cocos/2d/CCNodeGrid.cpp b/cocos/2d/CCNodeGrid.cpp index 87d30a1ca6..bc36305932 100644 --- a/cocos/2d/CCNodeGrid.cpp +++ b/cocos/2d/CCNodeGrid.cpp @@ -158,7 +158,6 @@ void NodeGrid::visit(Renderer *renderer, const Matrix &parentTransform, bool par if(_nodeGrid && _nodeGrid->isActive()) { // restore projection - Director *director = Director::getInstance(); director->setProjection(beforeProjectionType); } diff --git a/cocos/2d/CCRenderTexture.cpp b/cocos/2d/CCRenderTexture.cpp index 6eda6bc94c..98e7806544 100644 --- a/cocos/2d/CCRenderTexture.cpp +++ b/cocos/2d/CCRenderTexture.cpp @@ -684,7 +684,6 @@ void RenderTexture::begin() if(!_keepMatrix) { - Director *director = Director::getInstance(); director->setProjection(director->getProjection()); const Size& texSize = _texture->getContentSizeInPixels();