Fixed a couple of texture binding bugs.