如果我像这样初始化EAGLContext
_eaglContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]该程序运行良好,但使用kEAGLRenderingAPIOpenGLES3,以下代码将导致崩溃:
_ciContext = [CIContext contextWithEAGLContext:_eaglContext options:options];CIContext类引用声明“OpenGL ES上下文必须支持OpenGL ES 2.0”,但我的印象是,3.0应该是向后兼容的.
我遗漏了什么?
发布于 2015-03-20 22:10:29
从控制台输出:
"CIContexts只能用ES 2.0 EAGLContexts创建“
https://stackoverflow.com/questions/22663881
复制相似问题