merge framebuffer