Search code examples
glkitfbo

How can I bind the default FBO in GLKViewController


I'm a new for OpenGL ES with GLKit, I want to create two FBO for my program. but I don't know how to bind the default FBO, anyone who can help me ?

Any help or advice would be much appreciated.


Solution

  • this problem is basic, you just need add one line like this:

    [((GLKView *) self.view) bindDrawable];   
    

    this method can reset to GLKit default FBO