Cocos2d how to fix Crash When use Siri

When I use Siri on the Cocos2d 3.4.9 framework always make crash.
Following the crash of the stack.

28281410-98D0-4C07-9542-BD36283AA394.png

What's make crash reason?

I find a article aboute the problem.
The problem was Siri knocked out GL context that is why everthing crashed. and this fix will appear in 3.5. but if you want to do yourself right now. simply replace beginFrame method in CCGLView.m with this one line

-(void)beginFrame { [EAGLContext setCurrentContext:self.context]; }
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容