开发者

OpenGL not show result from secondary thread on iPhone

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜