Let's say I have two views need to present the same OpenGL content in renderBuffer. How do I bind this two view's CAEAGLLayer
to the renderBuffer?renderbufferStorage:fromDrawable:
just bind the last CAEAGLLayer
to GL_RENDEARBUFFER
.
Asked
Active
Viewed 88 times
0

Nicol Bolas
- 449,505
- 63
- 781
- 982

ooOlly
- 1,997
- 21
- 31
-
My iOS knowledge is limited. But couldn't you just use two framebuffers and bind each view to each renderbuffer of those framebuffers. – vallentin Apr 13 '17 at 19:30
-
In my situation, there are more than two views need to present the same OpenGL's content. If each view's layer separately bind to renderBuffer, I think there are some unnecessary memory and GPU footprint. – ooOlly Apr 14 '17 at 03:31