cocos2d-x 在输入文字时点击语音crash
修改CCDirectorCaller.mm文件 (cocos2dx/platform/ios/CCDirectorCaller.mm)
添加的代码:
#import <OpenGLES/EAGL.h>
#import "EAGLView.h"
[EAGLContext setCurrentContext: [[EAGLView sharedEGLView] context]];
参考:
修改CCDirectorCaller.mm文件 (cocos2dx/platform/ios/CCDirectorCaller.mm)
添加的代码:
#import <OpenGLES/EAGL.h>
#import "EAGLView.h"
[EAGLContext setCurrentContext: [[EAGLView sharedEGLView] context]];
参考: