4

EAGLContext如果我像这样初始化

_eaglContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]

该程序运行良好,但使用kEAGLRenderingAPIOpenGLES3,以下代码导致崩溃:

_ciContext = [CIContext contextWithEAGLContext:_eaglContext options:options];

CIContext类引用声明“OpenGL ES 上下文必须支持 OpenGL ES 2.0”,但我的印象是 3.0 应该是向后兼容的......

我错过了什么?

4

1 回答 1

-1

从控制台输出:

“CIContexts 只能使用 ES 2.0 EAGLContexts 创建”

于 2015-03-20T22:10:29.517 回答