fixed framebuffer OpenGL version issue

Added an #ifdef so framebuffer works with OpenGL versions pre-3.2.
Merge branch 'master', remote-tracking branch 'origin'
Merge commit '2c67919'