Adding our custom changes to OpenGL which relate to framebuffers. We probably want to upstream this at some point.