iOS GLKit and back to default framebuffer
问题 I am running the boiler plate OpenGL example code that XCode creates for an OpenGL project for iOS. This sets up a simple ViewController and uses GLKit to handle the rest of the work. All the update/draw functionality of the application is in C++. It is cross platform. There is a lot of framebuffer creation going on. The draw phase renders to a few frame buffers and then tries to set it back to the default framebuffer. glBindFramebuffer(GL_FRAMEBUFFER, 0); This generates an GL_INVALID_ENUM.