How to use OpenGL ES on a separate thread on iphone?

前端 未结 3 533
我在风中等你
我在风中等你 2020-12-02 13:36

The OpenGL ES rendering loop is placed on a separate thread in my iphone application. Everything goes fine except that the EAGLContext\'s presentRenderbuffer method fails. T

3条回答
  •  没有蜡笔的小新
    2020-12-02 14:26

    You shouldn't render the context on a different thread. Instead, do all the calculations on a different thread, and then ensure the rendering occurs on the main display thread.

提交回复
热议问题