This redirects all subsequent drawing to the specified framebuffer.
The latest drawing apis take explicit Framebuffer arguments so this stack of framebuffers shouldn't be used anymore.
This can either be an offscreen buffer created with Offscreen.to_texture or in the future it may be an onscreen framebuffers too.
buffer |
A Framebuffer object, either onscreen or offscreen. |