gpt4 book ai didi

ios - 无法从 3.0 EAGLContext 创建 CIContext

转载 作者:可可西里 更新时间:2023-11-01 06:17:19 33 4
gpt4 key购买 nike

如果我像这样初始化 EAGLContext

_eaglContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]

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

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

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

我错过了什么?

最佳答案

从控制台输出:

“CIContexts 只能用 ES 2.0 EAGLContexts 创建”

关于ios - 无法从 3.0 EAGLContext 创建 CIContext,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22663881/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com