Sprinkled tex and fbo setup with checkgl and added 3.0-and-up code path
that doesn't use EXT_framebuffer_object