some code to framebuffer object support