attached to a framebuffer or vice versa. might be more correct to just handle the case and unbind here.