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 nothing seems wrong. I call glClear(GL_COLOR_BUFFER_BIT);
first thing in the ::paintGL()
method.
Huh? Should I just disregard this error?
glClearColor(0,0,0,0)
to see if it made any difference, and the other is still there.glClear()
has error-checking code before and after. The error is not set directly before, and it is set directly after. Clearly it's theglClear()
call that is the culprit.