setup_frame();
const Framebuffer *out_fbo = Framebuffer::current();
- /* Binding the current object is a no-op, but this will restore the original
- FBO in case an exception is thrown. */
- Bind restore_fbo(out_fbo, true);
+ // XXX Make sure the correct FBO is restored if an exception is thrown
if(target[0])
{