iOS 6 app crashes in EAGLContext when displaying maps

后端 未结 1 1198
梦如初夏
梦如初夏 2020-12-30 13:45

We have an app that uses OpenGL and MKMapView. When we switched to iOS 6 it started crashing at [EAGLContext setCurrentContext:] with EXC_BAD_ACCES

相关标签:
1条回答
  • 2020-12-30 14:21

    iOS 6 maps are OpenGL based. Your app will crash if you don't call

    [EAGLContext setCurrentContext:nil]

    after you have set your own EAGLContext. We fixed our bug by putting the above call into the dealloc method of our class that was interacting with EAGLContext.

    0 讨论(0)
提交回复
热议问题