Instead of unbinding things immediately, defer it to when the state is
cleared. This results in less binding calls overall. The only reason
to unbind anything is to allow those objects to be destroyed, and that
shouldn't happen in the middle of rendering anyway.