开发者

OpenGL not show result from secondary thread on iPhone

开发者 https://www.devze.com 2023-04-09 14:17 出处:网络
I created EAGLContext and use it in开发者_如何学编程 the secondary thread. But there is no output displayed. The same code works fine if run in main loop.

I created EAGLContext and use it in开发者_如何学编程 the secondary thread. But there is no output displayed. The same code works fine if run in main loop.

Do I need to notify somewhere on each render completion?


EGL Context may be only active in one thread. You need to use eglMakeCurrent(). Also, you need to use eglSwapBuffers() once your rendering is done.

0

精彩评论

暂无评论...
验证码 换一张
取 消