added code for checking gl version before trying a frame buffer