I am trying to create an OpenGL 3.1 application for the Oculus Rift and one item it seems to require is a frame buffer texture but the function glFramebufferTexture is available for versions 3.2 and higher.

Is there a function that mimics this via a hack or something for OpenGL 3.1?

Thank you for your time.