mirror of https://github.com/axmolengine/axmol.git
closed #2920: fix compile error after merge.
This commit is contained in:
parent
0b07d376f6
commit
49cb2ce9d5
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue