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. The result is a blank white screen.
When the same code is run on the main thread, presentRenderbuffer succeeds and the graphics is properly shown.
What is the correct way of doing OpenGL on a separate thread?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…