Every time after I call glClear(GL_COLOR_BUFFER_BIT);, I get the OpenGL error \"invalid framebuffer operation\".
The call seems to work just fine, and n
I was having this issue on osx using NSOpenGLView with a CVDisplayLink to trigger the render callback.
Be sure to wait for the NSOpenGLView to be fully displayed before starting rendering, i.e. :
-(void)viewDidAppear {
[super viewDidAppear];
CVDisplayLinkStart(_displayLink);
}
Doing it in viewDidLoad is too early.