From 21f7e34d184c7e26caaaf7fbaf52d02517b6576b Mon Sep 17 00:00:00 2001 From: vision Date: Mon, 26 May 2014 13:49:00 +0800 Subject: [PATCH] remove unused variables --- cocos/base/CCDirector.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cocos/base/CCDirector.cpp b/cocos/base/CCDirector.cpp index ec5d27c0ce..906e8e495b 100644 --- a/cocos/base/CCDirector.cpp +++ b/cocos/base/CCDirector.cpp @@ -1230,8 +1230,6 @@ void Director::onCaptureScreen(const std::functiongetFrameZoomFactor() * _openGLView->getRetinaFactor(); #endif - int originx = 0; - int originy = 0; int width = static_cast(frameSize.width); int height = static_cast(frameSize.height); @@ -1247,7 +1245,7 @@ void Director::onCaptureScreen(const std::function flippedBuffer(new GLubyte[width * height * 4], [](GLubyte* p) { CC_SAFE_DELETE_ARRAY(p); }); if (!flippedBuffer)