glthread: replace custom glBindBuffer marshalling with generated one