From 346d42f723cbfacb649192f5c406428b509160df Mon Sep 17 00:00:00 2001 From: "Huabing.Xu" Date: Wed, 16 Apr 2014 11:20:45 +0800 Subject: [PATCH] remove warning message---finished --- cocos/2d/CCNodeGrid.cpp | 1 - cocos/2d/CCRenderTexture.cpp | 1 - 2 files changed, 2 deletions(-) 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();