Every time after I call glClear(GL_COLOR_BUFFER_BIT);, I get the OpenGL error \"invalid framebuffer operation\".
glClear(GL_COLOR_BUFFER_BIT);
The call seems to work just fine, and n
My best guess is that your framebuffer is not complete and calling glClear on an incomplete framebuffer is throwing the error.
glClear
Check the status of the framebuffer using glCheckFramebufferStatus and make sure it returns GL_FRAMEBUFFER_COMPLETE.
glCheckFramebufferStatus
GL_FRAMEBUFFER_COMPLETE