glPopAttrib "Invalid draw bindings."

glDebugMessageCallback is returning GL_INVALID_OPERATION: “Invalid draw bindings” on glPopAttrib. I don’t have much else to go on. Does anyone have any suggestions as to where to look?

Would you please list the attributes being popped to give more information?

ViolentHamster, I assume you called glPushAttrib(GL_COLOR_BUFFER_BIT) which is supposed to push the current glDrawBuffer()/glReadBuffer() setting.
Make sure the same FBO is bound when you call glPopAttrib().

Thanks so much. That fixed it.