如何在iOS 13中支持OpenGL?

从我不赞成使用OpenGL的情况下所阅读的内容来看,它仍然可以在iOS 13中运行。我有一个使用OpenGL的应用程序,但是当我使用Xcode 11.2.1进行构建时,看不到任何渲染。

我是否需要打开其他设置才能继续在iOS 13中使用OpenGL?我正在使用GLKView进行渲染。

编辑:我在App Store上当前的应用仍在运行。我仅在尝试使用Xcode 11生成并运行新更新时才看到此问题。看来Apple支持旧更新,但有意在新版本上禁用OpenGL。我希望有一种解决方法或一种方法可以在iOS 13中继续使用OpenGL。

编辑2:我的视图是使用共享上下文创建的。这是代码。

// global context created at start
_sharedContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; 

// context created for views
EAGLContext *context = [[EAGLContext alloc] initWithAPI:[_sharedContext API] sharegroup:[_sharedContext sharegroup]];
lwtdxy 回答:如何在iOS 13中支持OpenGL?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3128048.html

大家都在问