diff --git a/cocos/2d/CCTransitionProgress.cpp b/cocos/2d/CCTransitionProgress.cpp index 7e9d3bbc10..ff217793ee 100644 --- a/cocos/2d/CCTransitionProgress.cpp +++ b/cocos/2d/CCTransitionProgress.cpp @@ -32,6 +32,7 @@ THE SOFTWARE. #include "CCLayer.h" #include "CCActionInstant.h" #include "CCActionProgressTimer.h" +#include "CCNewRenderTexture.h" NS_CC_BEGIN @@ -71,7 +72,7 @@ void TransitionProgress::onEnter() Size size = Director::getInstance()->getWinSize(); // create the second render texture for outScene - RenderTexture *texture = RenderTexture::create((int)size.width, (int)size.height); + RenderTexture *texture = NewRenderTexture::create((int)size.width, (int)size.height); texture->getSprite()->setAnchorPoint(Point(0.5f,0.5f)); texture->setPosition(Point(size.width/2, size.height/2)); texture->setAnchorPoint(Point(0.5f,0.5f));