Hello I'm programming in OpenGLES for the iPhone but I'm currently stuck with a strange framebuffer object error.
At first I was following a few tutorials from Simon Maurice: http://web.me.com/smaurice/AppleCoder/Welcome.html
But then I moved on to do a few experiments of my own before continuing with other tutorials, however my experiment has hit a problem. What I was trying to do was make the EAGLView the view of a ViewController and this worked perfectly fine when the base code was originally from the tutorials.
Since EAGLView is a subclass of the UIView it's not too hard to do this, so continuing on with the experiment I wanted to do it with a clean slate. I created a new project in Xcode with the Windows-based Application project and created a new EAGLView and a ViewController to do the same task as the previous project.
However after compiling and running the view comes up white and the console outputs the "failed to make complete framebuffer object %x" error during the createFramebuffer process. (Error console output: "GLController[2071:207] failed to make complete framebuffer object 0").
I first thought it was my code so I ripped the working code from the previous project into the new project and still receive the same errors. At the same time I moved the new projects code into the old project and compiled with a successful output.
I'm confused to why the same code won't work correctly in a new project yet the new code will work correctly in the old project. If someone knows what I am missing it would be greatly appreciated.
Thanks.
(Also tested with several EAGLViews from Apple sample codes and the same error occurs on the new project, but does not occur on the old project with a ViewController attached.)