【问题标题】:Can't create a CIContext from a 3.0 EAGLContext无法从 3.0 EAGLContext 创建 CIContext
【发布时间】:2014-05-05 00:36:41
【问题描述】:

如果我像这样初始化EAGLContext

_eaglContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]

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

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

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

我错过了什么?

【问题讨论】:

    标签: ios opengl-es-2.0 core-image opengl-es-3.0


    【解决方案1】:

    从控制台输出:

    "CIContexts 只能用 ES 2.0 EAGLContexts 创建"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-25
      • 1970-01-01
      • 2018-01-27
      • 1970-01-01
      • 2018-03-19
      • 2022-01-20
      • 2018-10-29
      • 2014-01-16
      相关资源
      最近更新 更多