No you cannot do this. Invoking OpenGL ES functions out of UI thread will make the GL state machine confusion.
On iOS there's an API to switch GL state machine to another thread (but sorry I've forgotten the name of this API); while on android there's nothing to do, you must always call OpenGL ES functions in UI thread. ------by walzer wang
cocos2d-x 在新thread中调用opengles绘制函数会出错
最新推荐文章于 2022-09-06 11:13:56 发布