glBlitFramebuffer

Thank you.The suggestion to use an OpenGL debug context was incredibly useful.