closed #2920: fix compile error after merge.

This commit is contained in:
boyu0 2014-02-19 14:12:57 +08:00
parent 0b07d376f6
commit 49cb2ce9d5
1 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@
#import <OpenGLES/EAGL.h>
#import "CCDirectorCaller.h"
#import "CCDirector.h"
#import "EAGLView.h"
#import "CCGLView.h"
#import "CCEAGLView.h"
static id s_sharedDirectorCaller;
@ -94,7 +95,7 @@ static id s_sharedDirectorCaller;
-(void) doCaller: (id) sender
{
[EAGLContext setCurrentContext: [[CCEAGLView sharedEGLView] context]];
[EAGLContext setCurrentContext: [(CCEAGLView*)cocos2d::Director::getInstance()->getOpenGLView()->getEAGLView() context]];
cocos2d::Director::getInstance()->mainLoop();
}