fix framebuffer extension usage